DomainContext.ValidationContext Property

[WCF RIA Services Version 1 Service Pack 2 is compatible with either .NET framework 4 or .NET Framework 4.5, and with either Silverlight 4 or Silverlight 5.]

Gets or sets the Silverlight ValidationContext to use for all validation operations invoked by the DomainContext.

Namespace:  System.ServiceModel.DomainServices.Client
Assembly:  System.ServiceModel.DomainServices.Client (in System.ServiceModel.DomainServices.Client.dll)

Syntax

'Declaration
Public Property ValidationContext As ValidationContext
    Get
    Set
'Usage
Dim instance As DomainContext
Dim value As ValidationContext

value = instance.ValidationContext

instance.ValidationContext = value
public ValidationContext ValidationContext { get; set; }
public:
property ValidationContext^ ValidationContext {
    ValidationContext^ get ();
    void set (ValidationContext^ value);
}
member ValidationContext : ValidationContext with get, set
function get ValidationContext () : ValidationContext
function set ValidationContext (value : ValidationContext)

Property Value

Type: System.ComponentModel.DataAnnotations.ValidationContext
The object to use for all validation operation invoked by the DomainContext.

Remarks

This value may be set by the developer at any time to be used as the backing IServiceProvider and source of ValidationContext.Items. You perform this action to make these services and items available to each ValidationAttribute involved in validation.

See Also

Reference

DomainContext Class

System.ServiceModel.DomainServices.Client Namespace