Share via


WebAuthenticationService.BeginSaveUser 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.]

Begins an asynchronous SaveUser operation.

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

Syntax

'Declaration
Protected Overrides Function BeginSaveUser ( _
    user As IPrincipal, _
    callback As AsyncCallback, _
    state As Object _
) As IAsyncResult
'Usage
Dim user As IPrincipal
Dim callback As AsyncCallback
Dim state As Object
Dim returnValue As IAsyncResult

returnValue = Me.BeginSaveUser(user, _
    callback, state)
protected override IAsyncResult BeginSaveUser(
    IPrincipal user,
    AsyncCallback callback,
    Object state
)
protected:
virtual IAsyncResult^ BeginSaveUser(
    IPrincipal^ user, 
    AsyncCallback^ callback, 
    Object^ state
) override
abstract BeginSaveUser : 
        user:IPrincipal * 
        callback:AsyncCallback * 
        state:Object -> IAsyncResult 
override BeginSaveUser : 
        user:IPrincipal * 
        callback:AsyncCallback * 
        state:Object -> IAsyncResult 
protected override function BeginSaveUser(
    user : IPrincipal, 
    callback : AsyncCallback, 
    state : Object
) : IAsyncResult

Parameters

Return Value

Type: System.IAsyncResult
The result of the asynchronous call.

Exceptions

Exception Condition
InvalidOperationException

The user is anonymous.

-or-

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

See Also

Reference

WebAuthenticationService Class

System.ServiceModel.DomainServices.Client.ApplicationServices Namespace