Compartilhar via


AuthenticationService.LoadUser 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.]

Asynchronously loads the authenticated user from the server.

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

Syntax

'Declaration
Public Function LoadUser As LoadUserOperation
'Usage
Dim instance As AuthenticationService
Dim returnValue As LoadUserOperation

returnValue = instance.LoadUser()
public LoadUserOperation LoadUser()
public:
LoadUserOperation^ LoadUser()
member LoadUser : unit -> LoadUserOperation 
public function LoadUser() : LoadUserOperation

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

This method starts an operation with no complete action or user state. Successful completion of this operation will update the User.

See Also

Reference

AuthenticationService Class

LoadUser Overload

System.ServiceModel.DomainServices.Client.ApplicationServices Namespace