WebAuthenticationService.DomainContext 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 domain context this service delegates authenticating, loading, and saving to.
Namespace: System.ServiceModel.DomainServices.Client.ApplicationServices
Assembly: System.ServiceModel.DomainServices.Client.Web (in System.ServiceModel.DomainServices.Client.Web.dll)
Syntax
'Declaration
Public Property DomainContext As AuthenticationDomainContextBase
Get
Set
'Usage
Dim instance As WebAuthenticationService
Dim value As AuthenticationDomainContextBase
value = instance.DomainContext
instance.DomainContext = value
public AuthenticationDomainContextBase DomainContext { get; set; }
public:
property AuthenticationDomainContextBase^ DomainContext {
AuthenticationDomainContextBase^ get ();
void set (AuthenticationDomainContextBase^ value);
}
member DomainContext : AuthenticationDomainContextBase with get, set
function get DomainContext () : AuthenticationDomainContextBase
function set DomainContext (value : AuthenticationDomainContextBase)
Property Value
Type: System.ServiceModel.DomainServices.Client.ApplicationServices.AuthenticationDomainContextBase
The domain context.
Exceptions
Exception | Condition |
---|---|
InvalidOperationException | The service is already started. |
See Also
Reference
WebAuthenticationService Class
System.ServiceModel.DomainServices.Client.ApplicationServices Namespace