Token Constructor
Definition
- Namespace
- Codebelt.SharedKernel
- Assemblies
- Codebelt.SharedKernel.dll
Token(string, Action<TokenOptions>)
Initializes a new instance of the Token class.
public Token(string value, Action<TokenOptions> setup = null)
Parameters
valuestringsetupAction<TokenOptions>The TokenOptions which may be configured.
Exceptions
- ArgumentNullException
valuecannot be null.- ArgumentException
valuecannot be empty or consist only of white-space characters.- ArgumentOutOfRangeException
valuecontained one or more white-space characters -or-valuewas less than MinimumLength characters -or-valuewas greater than MaximumLength characters -or-valuehad a character frequency greater than MaximumCharacterFrequency.