Export (0) Print
Expand All

CustomValidationAttribute Constructor

Initializes a new instance of the CustomValidationAttribute class.

Namespace:  System.ComponentModel.DataAnnotations
Assembly:  System.ComponentModel.DataAnnotations (in System.ComponentModel.DataAnnotations.dll)

public CustomValidationAttribute(
	Type validatorType,
	string method
)

Parameters

validatorType
Type: System.Type
The type that contains the method to invoke when validating the member.
method
Type: System.String
The name of the method to invoke when validating the member.

Silverlight

Supported in: 5, 4, 3

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

ADD
Show:
© 2014 Microsoft