Class ValidatorMetadata
- Namespace
- Dynamicweb.Content.Items.Metadata
- Assembly
- Dynamicweb.dll
Represents a validator metadata.
public class ValidatorMetadata : IComparable<ValidatorMetadata>
- Inheritance
-
ValidatorMetadata
- Implements
- Inherited Members
Constructors
ValidatorMetadata()
Initializes a new instance of an object.
public ValidatorMetadata()
ValidatorMetadata(ValidatorMetadata)
Initializes a new instance of an object.
public ValidatorMetadata(ValidatorMetadata copyFrom)
Parameters
copyFrom
ValidatorMetadataObject to copy state from.
Exceptions
- ArgumentNullException
copyFrom
is null.
Properties
ErrorMessage
Gets or sets the error message displayed when validation fails.
public string ErrorMessage { get; set; }
Property Value
Parameters
Gets or sets the validator parameters.
public IDictionary<string, object> Parameters { get; set; }
Property Value
TypeName
Gets or sets tye assembly-qualified name of the validator type.
public string TypeName { get; set; }
Property Value
Methods
CompareTo(ValidatorMetadata)
Compares the current object with the given one and returns the comparison result.
public int CompareTo(ValidatorMetadata other)
Parameters
other
ValidatorMetadataObject to compare with.
Returns
- int
Comparison result.
CopyTo(ValidatorMetadata)
Copies the state of the current object into the given one.
public void CopyTo(ValidatorMetadata target)
Parameters
target
ValidatorMetadataObject to copy state into.
Exceptions
- ArgumentNullException
target
is null.