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
שתף איתנו פעולה ב- GitHub
ניתן למצוא את המקור לתוכן זה ב- GitHub, שם ניתן גם ליצור ולסקור בעיות ולמשוך בקשות. לקבלת מידע נוסף, עיין במדריך התורמים שלנו.