ValidationContext Constructor (Object)

Initializes a new instance of the ValidationContext class with the specified object to validate.

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

public ValidationContext(
	Object instance
)

Parameters

instance
Type: System.Object
The object to validate.

ExceptionCondition
ArgumentNullException

instance is null.

Silverlight

Supported in: 5

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

Community Additions

ADD
Show: