ValidationContext Constructor (Object)

.NET Framework (current version)
 

Initializes a new instance of the ValidationContext class using the specified object instance

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

public ValidationContext(
	object instance
)

Parameters

instance
Type: System.Object

The object instance to validate. It cannot be null.

Universal Windows Platform
Available since 8
.NET Framework
Available since 4.5
Portable Class Library
Supported in: portable .NET platforms
Return to top
Show: