CustomValidationAttribute(Type, String) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Zusammenarbeit auf GitHub
Die Quelle für diesen Inhalt finden Sie auf GitHub, wo Sie auch Issues und Pull Requests erstellen und überprüfen können. Weitere Informationen finden Sie in unserem Leitfaden für Mitwirkende.