CustomValidationAttribute(Type, String) Konstruktor

Definíció

Inicializálja a CustomValidationAttribute osztály új példányát.

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)

Paraméterek

validatorType
Type

Az egyéni ellenőrzést végző metódust tartalmazó típus.

method
String

Az egyéni ellenőrzést végző módszer.

Megjegyzések

Ez a metódus egy egyéni osztályt és egy kapcsolódó metódust ad meg futásidőben az egyéni érvényesítési logika végrehajtásához.

A következőre érvényes: