Class ParameterDateTime
- Namespace
- TechnologySolutions.Rfid.AsciiProtocol.Parameters
- Assembly
- TechnologySolutions.Rfid.AsciiProtocol.Core.dll
A parameter that represent a date and/or time value
public class ParameterDateTime : ParameterBase<DateTime?>, IParameterAndValue<DateTime?>, IParameterValue<DateTime?>, ICommandParameter, IParameterAction
- Inheritance
-
ParameterDateTime
- Implements
- Inherited Members
Constructors
ParameterDateTime(string, string)
Initializes a new instance of the ParameterDateTime class
public ParameterDateTime(string identifier, string parseFormat)
Parameters
identifier
stringThe character(s) used to identify the parameter on the command line
parseFormat
stringA format string to extract the DateTime from the parameter
Methods
ParseValue(string)
Attempt to parse the value from the command line and assign value to the parsed value
protected override void ParseValue(string value)
Parameters
value
stringThe value to parse
Exceptions
- ArgumentOutOfRangeException
If the value is outside the permitted range
- FormatException
If the parameter is not in the expected format