Bewerken

Delen via


CustomValidationAttribute(Type, String) Constructor

Definition

Initializes a new instance of the CustomValidationAttribute class.

public:
 CustomValidationAttribute(Type ^ validatorType, System::String ^ method);
public CustomValidationAttribute (Type validatorType, string method);
new System.ComponentModel.DataAnnotations.CustomValidationAttribute : Type * string -> System.ComponentModel.DataAnnotations.CustomValidationAttribute
Public Sub New (validatorType As Type, method As String)

Parameters

validatorType
Type

The type that contains the method that performs custom validation.

method
String

The method that performs custom validation.

Remarks

This method specifies a custom class and a related method to call at run time in order to execute custom validation logic.

Applies to