CustomValidationAttribute Constructor (Type, String)

 

Initializes a new instance of the CustomValidationAttribute class.

Namespace:   System.ComponentModel.DataAnnotations
Assembly:  System.ComponentModel.DataAnnotations (in System.ComponentModel.DataAnnotations.dll)

Public Sub New (
	validatorType As Type,
	method As String
)

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
Return to top
Show: