Class BasicIdValidator
Performs basic validation of an id.
Implements
Namespace: DNVGL.One.Compute.Core.IdValidation
Assembly: DNVGL.One.Compute.Core.dll
Syntax
public class BasicIdValidator : object, IIdValidator
Remarks
The id must be between 1 and 1,024 characters long and cannot contain the following reserved characters: '', '#', '%', '+', '/', '?', or control characters in the range U+0000 to U+001F or U+007F to U+009F. This ensures that the id can be used as a partition key in Azure Table Storage.
Methods
View SourceValidate(String)
Determines whether the specified id
is valid.
Declaration
public virtual ValidationResult Validate(string id)
Parameters
Type | Name | Description |
---|---|---|
System.String | id | The identifier. |
Returns
Type | Description |
---|---|
ValidationResult |
|