IdeaBlade DevForce 2010 Help Reference
CreateUserCore(String,Boolean,IEnumerable<String>) Method
See Also  Send Feedback
IdeaBlade.EntityModel.Web Assembly > IdeaBlade.EntityModel.Web Namespace > AspAuthenticatingLoginManager Class > CreateUserCore Method : CreateUserCore(String,Boolean,IEnumerable<String>) Method



name
isAuthenticated
roles
Create an System.Security.Principal.IPrincipal representing the current user. Called when the login was passed an ILoginCredential.

Syntax

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

Parameters

name
isAuthenticated
roles

Remarks

The default implementation creates a IdeaBlade.EntityModel.UserBase, or a type derived from UserBase. The authentication type is "Forms" if ASP.NET compatibility was enabled for the service.

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.