Export (0) Print
Expand All

AuthenticationService.User Property

WCF RIA Services

[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 a principal representing the authenticated user.

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

public IPrincipal User { get; }

Property Value

Type: System.Security.Principal.IPrincipal
A principal representing the authenticated user.

This property may be updated by the Login, Logout, and LoadUser operations. If none of the previous methods has completed successfully, this property will contain a default user.

Show:
© 2014 Microsoft