Partager via


ValidatorRule Members

Include Protected Members
Include Inherited Members

The ValidatorRule type exposes the following members.

Constructors

  Name Description
Public method ValidatorRule()
Initializes a new instance of the ValidatorRule class..
Public method ValidatorRule(BindingExpression)
Initializes a new instance of the ValidatorRule class for a binding expression.

Methods

  Name Description
Public method Equals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected method Finalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public method GetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public method GetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected method MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public method ToString
Returns a string that represents the current object.
(Inherited from Object.)
Public method Validate(Object, CultureInfo)
Validates value using the validators associated with the source property.
(Overrides ValidationRule.Validate(Object, CultureInfo).)
Public method Validate(Object, CultureInfo, BindingExpressionBase)
Performs validation checks on a value.
(Inherited from ValidationRule.)
Public method Validate(Object, CultureInfo, BindingGroup)
Performs validation checks on a value.
(Inherited from ValidationRule.)

Properties

  Name Description
Public property RulesetName
Gets or sets the ruleset name to use when validating.
Public property SourcePropertyName
Gets or sets the name of the property for which explicitly configured ValidatorRule instances should get their validators.
Public property SourceType
Gets or sets the type from which explicitly configured ValidatorRule instances should get their validators.
Public property ValidatesOnTargetUpdated
Gets or sets a value that indicates whether the validation rule runs when the target of the Binding is updated.
(Inherited from ValidationRule.)
Public property ValidationSpecificationSource
Gets or sets the source for validation information.
Public property ValidationStep
Gets or sets when the validation rule runs.
(Inherited from ValidationRule.)

See Also

ValidatorRule Class

Microsoft.Practices.EnterpriseLibrary.Validation.Integration.WPF Namespace