DevForce Help Reference
AuthenticationContext Property (EntityManager)


Gets or sets the IdeaBlade.EntityModel.Security.IAuthenticationContext used by this EntityManager.
Syntax
'Declaration
 
Public Property AuthenticationContext As IAuthenticationContext
'Usage
 
Dim instance As EntityManager
Dim value As IAuthenticationContext
 
instance.AuthenticationContext = value
 
value = instance.AuthenticationContext
public IAuthenticationContext AuthenticationContext {get; set;}
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 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 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

EntityManager Class
EntityManager Members

Send Feedback