The ValidationBuilder type exposes the following members.

Constructors

  NameDescription
Public methodValidationBuilder()()()()
A generic constructor; where no validation messages, or path is passed in A new internal list of validation messages is instantiated as part of this constructor
Public methodValidationBuilder(String)
A generic constructor with no validation messages passed in; however the path is specified A new internal list of validation messages is instantiated as part of this constructor
Public methodValidationBuilder(String, List<(Of <<'(ValidationMessage>)>>))
A generic constructor were both the path and the lsit of validation messages are passed in.

Methods

  NameDescription
Public methodAddValidationMessage
This method adds a validation message to the lsit of validation messages
Public methodArgumentRequiredCheck(String, ICollection)
This validation method performs a check to ensure that the collection passed in contains some items
Public methodArgumentRequiredCheck(String, DateTime)
This validation method performs a check to ensure that the DateTime value is set
Public methodArgumentRequiredCheck(String, Enum)
This validation method performs a check to ensure that the enum passed in does not have a value of undefined
Public methodArgumentRequiredCheck(String, Object)
This validation method performs a check to ensure that the object passed in is not null or empty in the case of a string
Public methodArgumentRequiredCheck(String, String)
This validation method performs a check to ensure that the object passed in is not null or empty in the case of a string
Public methodArgumentRequiredCheck(String, Object, String)
This validation method performs a check to ensure that the object passed in is not null or empty in the case of a string
Public methodArgumentRequiredCheck<(Of <<'(T>)>>)(String, Nullable<(Of <<'(T>)>>))
This validation method performs a check to ensure that the object passed in is not null
Public methodChoiceCheck
This validation method performs a check to ensure that only one of the items within the passed in key value pair is not null or empty in the case of a string
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodHpiiCheck
Validates an HPII number.
Public methodHpioCheck
Validates an HPIO number.
Public methodHpioOidCheck
Validates an HPIO number (including OID).
Public methodIhiCheck
Validates an IHI number.
Public methodMatchCheck<(Of <<'(T>)>>)
This validation method performs a match check on two objects
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodNoMatchCheck<(Of <<'(T>)>>)
This validation method performs a check on two objects ensuring they do not match
Public methodOidCheck
Validates an OID value.
Public methodOidQualifiedIdCheck
Validates a fully qualified identifier
Public methodRangeCheck
This validation method performs a range check on a collection of objects.
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)
Public methodUuidCheck
Validates a UUID value.

Extension Methods

  NameDescription
Public Extension MethodGetAttributeValue<(Of <<'(T, TExpected>)>>)
Extension Methods for retrieving a value from an interface
(Defined by Extensions.)
Public Extension MethodSerializeToXml()()()()Overloaded.
Serializes any object to XML.
(Defined by Extensions.)
Public Extension MethodSerializeToXml(String)Overloaded.
Serializes any object to XML.
(Defined by Extensions.)

Properties

  NameDescription
Public propertyMessages
The list of validation messages
Public propertyPath
The path to the property that is currently being validated
Public propertyPathName
The path to the property that is currently being validated without the trailing dot

See Also