IdeaBlade.EntityModel Assembly > IdeaBlade.EntityModel Namespace > EntityManager Class : AuthenticationContext Property |
'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;}
Exception | Description |
---|---|
System.ArgumentNullException | Thrown if try to set the AuthenticationContext to a null value. |
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.
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