AuthenticationBase<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.]
Gets 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
Public Function GetUser As T
'Usage
Dim instance As AuthenticationBase
Dim returnValue As T
returnValue = instance.GetUser()
public T GetUser()
public:
virtual T GetUser() sealed
abstract GetUser : unit -> 'T
override GetUser : unit -> 'T
public final function GetUser() : T
Return Value
Type: T
An enumerable with a single user.
Implements
Remarks
If the user is not authenticated, an anonymous user will be returned. By default, the user is populated with data from HttpContext, Roles, and ProfileBase. In updating the user from the profile, the provider copies the corresponding profile value into each property in T. This behavior can be tailored by marking specified properties with the ProfileUsageAttribute attribute.
See Also
Reference
System.ServiceModel.DomainServices.Server.ApplicationServices Namespace