Table of Contents

Interface IParameterAction

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

Defines actions common to all parameters to read from or write to a command line

public interface IParameterAction

Methods

AppendToCommandLine(StringBuilder)

Appends the parameter to the command line as required

void AppendToCommandLine(StringBuilder line)

Parameters

line StringBuilder

The builder for the command line

Remarks

Most parameters have a not specified value which if set do not get output to the command line

ParseParameter(string)

Parse the string to extract the parameter value

bool ParseParameter(string parameter)

Parameters

parameter string

The parameter to parse

Returns

bool

True if the parameter is for this instance and the value was parsed successfully. False otherwise

Exceptions

ArgumentOutOfRangeException

If the value is outside the permitted range

FormatException

If the parameter is not in the expected format

Reset()

Resets the parameter to its not specified value

void Reset()