| 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); } | |
| Exception | Description |
|---|---|
| System.ArgumentNullException | Thrown if try to set the AuthenticationContext to a null value. |
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.
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