This documentation is archived and is not being maintained.

CustomValidationAttribute.IsValid Method

Visual Studio 2010

Determines whether the object is valid.

Checks whether the specified object is valid.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  NameDescription
Public method IsValid(Object) Determines whether the specified value of the object is valid. (Inherited from ValidationAttribute.)
Protected method IsValid(Object, ValidationContext) Validates the specified value with respect to the current validation attribute. (Inherited from ValidationAttribute.)
Top

This method overrides the IsValid(Object) method and is invoked to perform validation on a type that is identified by the ValidatorType property. It redirects the call to the method that is identified by the Method property, which in turn performs the validation.

Show: