IdeaBlade DevForce 2010 Help Reference
UserBase Class
Members  See Also  Send Feedback
IdeaBlade.EntityModel Assembly > IdeaBlade.EntityModel Namespace : UserBase Class



The default System.Security.Principal.IPrincipal implementation within DevForce.

Syntax

Visual Basic (Declaration) 
<KnownTypeAttribute(MethodName="", Type=IdeaBlade.EntityModel.UserIdentity)>
<DataContractAttribute()>
Public Class UserBase 
   Implements System.Security.Principal.IIdentitySystem.Security.Principal.IPrincipal 
Visual Basic (Usage)Copy Code
Dim instance As UserBase
C# 
[KnownTypeAttribute(MethodName="", Type=IdeaBlade.EntityModel.UserIdentity)]
[DataContractAttribute()]
public class UserBase : System.Security.Principal.IIdentitySystem.Security.Principal.IPrincipal  
C++/CLI 
[KnownTypeAttribute(MethodName="", Type=IdeaBlade.EntityModel.UserIdentity)]
[DataContractAttribute()]
public ref class UserBase : public System.Security.Principal.IIdentitySystem.Security.Principal.IPrincipal  

Remarks

Represents the current user in DevForce application. When a custom IEntityLoginManager is used you may return either a UserBase or any standard or custom System.Security.Principal.IPrincipal implementation.

When a UserBase is returned by a Login call, it will be available in the client application through the Principal property on the EntityManager. For methods invoked on the server, the Thread.CurrentPrincipal will return a UserBase instance, as will the method's IPrincipal argument if specified.

If you are using ASP.NET security and have enabled the ASP.NET Role Manager you can use UserBase to perform role-based authorization within your application using either declarative or imperative security checks.

If you use the ASP.NET Profile feature the profile properties will automatically be set in your custom UserBase implementation. Any properties in your custom class which match the Profile properties in name and data type will be set by the AspAuthenticatingLoginManager. Be sure that your custom class extends UserBase.

You can also extend UserBase and AspAuthenticatingLoginManager to add additional application-specific properties and logic. Make sure that you decorate your custom UserBase type with a DataContract attribute.

Inheritance Hierarchy

System.Object
   IdeaBlade.EntityModel.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.