IdeaBlade DevForce 2010 Help Reference
AuthenticationContext Property
See Also  Send Feedback
IdeaBlade.EntityModel Assembly > IdeaBlade.EntityModel Namespace > EntityManager Class : AuthenticationContext Property



Gets or sets the IdeaBlade.EntityModel.Security.IAuthenticationContext used by this EntityManager.

Syntax

Visual Basic (Declaration) 
Public Property AuthenticationContext As IAuthenticationContext
Visual Basic (Usage)Copy Code
Dim instance As EntityManager
Dim value As IAuthenticationContext
 
instance.AuthenticationContext = value
 
value = instance.AuthenticationContext
C# 
public IAuthenticationContext AuthenticationContext {get; set;}
C++/CLI 
public:
property IAuthenticationContext^ AuthenticationContext {
   IAuthenticationContext^ get();
   void set (    IAuthenticationContext^ value);
}

Exceptions

ExceptionDescription
System.ArgumentNullExceptionThrown if try to set the AuthenticationContext to a null value.

Remarks

The AuthenticationContext represents the current authentication state and credentials, of either an individual EntityManager or the application. By default, all EntityManagers use the "default" authentication context, IdeaBlade.EntityModel.Security.Authenticator.DefaultAuthenticationContext. The EntityManagerOptions.UseDefaultAuthenticationContext setting controls this, and is true by default.

When using the default context, a single login - on either the EntityManager or the Authenticator - will set the AuthenticationContext used throughout the application.

An EntityManager can use its own AuthenticationContext if it requires credentials separate from other EntityManagers within the application. Set the EntityManagerOptions.UseDefaultAuthenticationContext to false, and call Login. If you call Authenticator.Login directly, be sure to set the AuthenticationContext to the returned value.

The AuthenticationContext will be null if a Login has not been done.

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.