ValidatePath
Description
- Derived from
Represents a logical path into a data model with a well-defined string representation, for example:
Object.Member[123].Tags['Name']
A data model path is built from the concatenation of zero or more elements:
Public / Constructors
For
Creates a new instance of ValidatePath with a single path element of type ValidatePathElement.Context.
Public / Methods
Context
Returns the context object for the index opt-th ValidatePathElement.Context path element, which may have been defined by a preceding path element.
Name
Returns the name of the index opt-th ValidatePathElement.Member or ValidatePathElement.Entry path element.
Rebuild
Creates a new instance of ValidatePathBuilder that initially contains the elements of this validation path.
ToString
2 overloads
Formats this validation path as a string.
The string representation of a non-empty validation path (see IsEmpty) might still be the empty string, because path elements of type ValidatePathElement.Context are not included in the string representation.