Table of Contents

Class AsciiResponseAttribute

Namespace
TechnologySolutions.Rfid.AsciiProtocol
Assembly
TechnologySolutions.Rfid.AsciiProtocol.Core.dll

This attribute is used to identify which properties on a command are updated when the command receives a complete response. It identifies the response header to which the property corresponds.

[AttributeUsage(AttributeTargets.Property, AllowMultiple = true, Inherited = true)]
public sealed class AsciiResponseAttribute : Attribute
Inheritance
AsciiResponseAttribute
Inherited Members

Constructors

AsciiResponseAttribute(string)

Initializes a new instance of the AsciiResponseAttribute class

public AsciiResponseAttribute(string responseHeader)

Parameters

responseHeader string

The response header for the attributed property

AsciiResponseAttribute(string, AsciiResponseRepeat, string)

Initializes a new instance of the AsciiResponseAttribute class

public AsciiResponseAttribute(string responseHeader, AsciiResponseRepeat repeat, string comment)

Parameters

responseHeader string

The response header for the attributed property

repeat AsciiResponseRepeat

The number of times the header can repeat

comment string

Any additional comments for the response header

Properties

Comment

Gets a comment explaining the occurrence of this response header

public string Comment { get; }

Property Value

string

Repeat

Gets or sets the number of response headers expected

public AsciiResponseRepeat Repeat { get; }

Property Value

AsciiResponseRepeat

ResponseHeader

Gets the response header that is reported by this property when the Response is completed successfully

public string ResponseHeader { get; }

Property Value

string