Compartilhar via


WebAuthenticationService.Initialize Method

[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)

Syntax

'Declaration
Protected Sub Initialize
'Usage

Me.Initialize()
protected void Initialize()
protected:
void Initialize()
member Initialize : unit -> unit 
protected function Initialize()

Exceptions

Exception Condition
InvalidOperationException

DomainContext is nulla null reference (Nothing in Visual Basic) and a new instance cannot be created.

Remarks

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.

See Also

Reference

WebAuthenticationService Class

System.ServiceModel.DomainServices.Client.ApplicationServices Namespace