Show / Hide Table of Contents

Class BasicIdValidator

Performs basic validation of an id.

Inheritance
System.Object
BasicIdValidator
EmailAddressValidator
Implements
IIdValidator
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 Source

Validate(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

true if the id is valid; otherwise, false.

Implements

IIdValidator

See Also

IIdValidator
  • View Source
Back to top Copyright © DNV GL AS. All rights reserved.