CustomValidationAttribute Constructor (Type, String)
.NET Framework (current version)
Initializes a new instance of the CustomValidationAttribute class.
Assembly: System.ComponentModel.DataAnnotations (in System.ComponentModel.DataAnnotations.dll)
Parameters
- validatorType
-
Type:
System.Type
The type that contains the method that performs custom validation.
- method
-
Type:
System.String
The method that performs custom validation.
This method specifies a custom class and a related method to call at run time in order to execute custom validation logic.
Universal Windows Platform
Available since 8
.NET Framework
Available since 4.0
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 3.0
Available since 8
.NET Framework
Available since 4.0
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 3.0
Show: