CustomValidationAttribute(Type, String) Konstruktor

Definicja

Inicjuje nowe wystąpienie klasy CustomValidationAttribute.

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)

Parametry

validatorType
Type

Typ, który zawiera metodę, która wykonuje niestandardową walidację.

method
String

Metoda, która przeprowadza walidację niestandardową.

Uwagi

Ta metoda określa klasę niestandardową i powiązaną metodę wywoływania w czasie wykonywania w celu wykonania niestandardowej logiki walidacji.

Dotyczy