Share via


AuthenticationService.LoadUser Method (Action<LoadUserOperation>, 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 loads the authenticated user from the server with 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 LoadUser ( _
    completeAction As Action(Of LoadUserOperation), _
    userState As Object _
) As LoadUserOperation
'Usage
Dim instance As AuthenticationService
Dim completeAction As Action(Of LoadUserOperation)
Dim userState As Object
Dim returnValue As LoadUserOperation

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

Parameters

  • completeAction
    Type: System.Action<LoadUserOperation>
    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.LoadUserOperation
The result of the operation.

Exceptions

Exception Condition
InvalidOperationException

This method is called while another asynchronous operation is still being processed.

Remarks

Successful completion of this operation will update the User.

See Also

Reference

AuthenticationService Class

LoadUser Overload

System.ServiceModel.DomainServices.Client.ApplicationServices Namespace