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
stringThe 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
stringThe response header for the attributed property
repeat
AsciiResponseRepeatThe number of times the header can repeat
comment
stringAny additional comments for the response header
Properties
Comment
Gets a comment explaining the occurrence of this response header
public string Comment { get; }
Property Value
Repeat
Gets or sets the number of response headers expected
public AsciiResponseRepeat Repeat { get; }
Property Value
ResponseHeader
Gets the response header that is reported by this property when the Response is completed successfully
public string ResponseHeader { get; }