IdeaBlade DevForce 2010 Help Reference
Principal Property
See Also  Send Feedback
IdeaBlade.EntityModel Assembly > IdeaBlade.EntityModel Namespace > EntityManager Class : Principal Property



Returns the System.Security.Principal.IPrincipal representing the current user.

Syntax

Visual Basic (Declaration) 
<ObsoleteAttribute("Will be removed after 9/1/2012.  Use AuthenticationContext.Principal instead.")>
Public ReadOnly Property Principal As IPrincipal
Visual Basic (Usage)Copy Code
Dim instance As EntityManager
Dim value As IPrincipal
 
value = instance.Principal
C# 
[ObsoleteAttribute("Will be removed after 9/1/2012.  Use AuthenticationContext.Principal instead.")]
public IPrincipal Principal {get;}
C++/CLI 
[ObsoleteAttribute("Will be removed after 9/1/2012.  Use AuthenticationContext.Principal instead.")]
public:
property IPrincipal^ Principal {
   IPrincipal^ get();
}

Remarks

The Principal is set once the Login completes to identify the current user. You can use the Principal to perform role-based authorization.

In a Silverlight application, this will return a UserBase.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2013 All Rights Reserved.