| Visual Basic (Declaration) | |
|---|---|
Protected Overridable Function CreatePrincipalCore( _ ByVal identity As IIdentity, _ ByVal roles As IEnumerable(Of String) _ ) As IPrincipal | |
| Visual Basic (Usage) | Copy Code |
|---|---|
Dim instance As AspAuthenticatingLoginManager Dim identity As IIdentity Dim roles As IEnumerable(Of String) Dim value As IPrincipal value = instance.CreatePrincipalCore(identity, roles) | |
| C# | |
|---|---|
protected virtual IPrincipal CreatePrincipalCore( IIdentity identity, IEnumerable<string> roles ) | |
| C++/CLI | |
|---|---|
protected: virtual IPrincipal^ CreatePrincipalCore( IIdentity^ identity, IEnumerable<String^>^ roles ) | |
Parameters
- identity
- roles
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.
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