Compartilhar via


IAuthentication<T>.GetUser 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.]

Retrieves the principal and profile for the current user.

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

Syntax

'Declaration
<QueryAttribute(IsComposable := False)> _
Function GetUser As T
'Usage
Dim instance As IAuthentication
Dim returnValue As T

returnValue = instance.GetUser()
[QueryAttribute(IsComposable = false)]
T GetUser()
[QueryAttribute(IsComposable = false)]
T GetUser()
[<QueryAttribute(IsComposable = false)>]
abstract GetUser : unit -> 'T 
function GetUser() : T

Return Value

Type: T
An enumerable with a single user. If the user is not authenticated, an anonymous user is returned.

See Also

Reference

IAuthentication<T> Interface

System.ServiceModel.DomainServices.Server.ApplicationServices Namespace