WebAuthenticationService.Initialize Method

WCF RIA Services

[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.]

Initializes this authentication service.

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

protected void Initialize()

ExceptionCondition
InvalidOperationException

DomainContext is null and a new instance cannot be created.

This method is invoked before the service is used for the first time from CreateDefaultUser and the methods that begin an operation. It can also be called earlier to ensure the service is ready for use. Subsequent invocations will not reinitialize the service.

Show: