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
Tee yhteistyötä kanssamme GitHubissa
Tämän sisällön lähde on GitHubissa, jossa voit myös luoda ja tarkastella ongelmia ja pull-pyyntöjä. Katso lisätietoja osallistujan oppaasta.