Share via


WebAuthenticationService.DomainContextType 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 type of the domain context.

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

Syntax

'Declaration
Public Property DomainContextType As String
    Get
    Set
'Usage
Dim instance As WebAuthenticationService
Dim value As String

value = instance.DomainContextType

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

Property Value

Type: System.String
The type of the domain context.

Exceptions

Exception Condition
InvalidOperationException

The service is already started.

Remarks

If the DomainContext is not set when this service is started, the WebAuthenticationService class instantiates a context specified by the DomainContextType. In determining the type, this property is treated as the full name of a type in the application assembly. If the initial search does not return a valid type, this string is treated as the assembly qualified name of a type.

See Also

Reference

WebAuthenticationService Class

System.ServiceModel.DomainServices.Client.ApplicationServices Namespace