AuthenticationService.SaveUser Method (Action<SaveUserOperation>, Object)

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

Asynchronously saves the authenticated user to the server with the specified callback method and user state.

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

Syntax

'Declaration
Public Function SaveUser ( _
    completeAction As Action(Of SaveUserOperation), _
    userState As Object _
) As SaveUserOperation
'Usage
Dim instance As AuthenticationService
Dim completeAction As Action(Of SaveUserOperation)
Dim userState As Object
Dim returnValue As SaveUserOperation

returnValue = instance.SaveUser(completeAction, _
    userState)
public SaveUserOperation SaveUser(
    Action<SaveUserOperation> completeAction,
    Object userState
)
public:
SaveUserOperation^ SaveUser(
    Action<SaveUserOperation^>^ completeAction, 
    Object^ userState
)
member SaveUser : 
        completeAction:Action<SaveUserOperation> * 
        userState:Object -> SaveUserOperation 
public function SaveUser(
    completeAction : Action<SaveUserOperation>, 
    userState : Object
) : SaveUserOperation

Parameters

  • completeAction
    Type: System.Action<SaveUserOperation>
    An action that will be invoked immediately after the operation completes and is called in all cases, including success, cancellation, and error. This parameter is optional.

Return Value

Type: System.ServiceModel.DomainServices.Client.ApplicationServices.SaveUserOperation
The result of the operation.

Exceptions

Exception Condition
InvalidOperationException

This method is called while another asynchronous operation is still being processed. To handle an operation error, MarkErrorAsHandled can be called from the operation completion callback or from a Completed event handler.

See Also

Reference

AuthenticationService Class

SaveUser Overload

System.ServiceModel.DomainServices.Client.ApplicationServices Namespace