IdeaBlade DevForce 2010 Help Reference
CreateUserCore(IPrincipal) Method
See Also  Send Feedback
IdeaBlade.EntityModel.Web Assembly > IdeaBlade.EntityModel.Web Namespace > AspAuthenticatingLoginManager Class > CreateUserCore Method : CreateUserCore(IPrincipal) Method



currentUser
Create an System.Security.Principal.IPrincipal representing the current user. Called when the login was performed without an ILoginCredential to load the current user authenticated via Windows authentication or a persistent token.

Syntax

Visual Basic (Declaration) 
<ObsoleteAttribute("Deprecated.  Override CreateIdentityCore and/or CreatePrincipalCore instead.  Will be removed in June 2011.")>
Protected Overloads Overridable Function CreateUserCore( _
   ByVal currentUser As IPrincipal _
) As IPrincipal
Visual Basic (Usage)Copy Code
Dim instance As AspAuthenticatingLoginManager
Dim currentUser As IPrincipal
Dim value As IPrincipal
 
value = instance.CreateUserCore(currentUser)
C# 
[ObsoleteAttribute("Deprecated.  Override CreateIdentityCore and/or CreatePrincipalCore instead.  Will be removed in June 2011.")]
protected virtual IPrincipal CreateUserCore( 
   IPrincipal currentUser
)
C++/CLI 
[ObsoleteAttribute("Deprecated.  Override CreateIdentityCore and/or CreatePrincipalCore instead.  Will be removed in June 2011.")]
protected:
virtual IPrincipal^ CreateUserCore( 
   IPrincipal^ currentUser
) 

Parameters

currentUser

Remarks

The default implementation creates a IdeaBlade.EntityModel.UserBase, or a type derived from UserBase. The authentication type and roles are obtained from the IPrincipal passed. This method is called when a login is performed without an IdeaBlade.EntityModel.ILoginCredential.

This method has been deprecated. Override CreateIdentityCore and or CreatePrincipalCore to customize default processing, which returns a IdeaBlade.EntityModel.UserBase containing a IdeaBlade.EntityModel.UserIdentity.

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.