DevForce Help Reference
CreatePrincipalCore Method


Creates an IPrincipal from the information passed.
Syntax
'Declaration
 
Protected Overridable Function CreatePrincipalCore( _
   ByVal identity As IIdentity, _
   ByVal roles As IEnumerable(Of String) _
) As IPrincipal
'Usage
 
Dim instance As AspAuthenticatingLoginManager
Dim identity As IIdentity
Dim roles As IEnumerable(Of String)
Dim value As IPrincipal
 
value = instance.CreatePrincipalCore(identity, roles)
protected virtual IPrincipal CreatePrincipalCore( 
   IIdentity identity,
   IEnumerable<string> roles
)

Parameters

identity
roles
Remarks
The default implementation returns a IdeaBlade.EntityModel.UserBase, or a sub-type if found. If you return a custom IPrincipal be sure that it can be serialized, and is defined on both client ands server in n-tier deployments. If the only customization in your sub-typed UserBase is for Profile properties you do not need to override this method, as DevForce will automatically find UserBase sub-types and auto-fill Profile properties.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

AspAuthenticatingLoginManager Class
AspAuthenticatingLoginManager Members

Send Feedback