Export (0) Print
Expand All

EContextType Enumeration

Describes the security context of the currently executing thread.

typedef enum {
    eCurrentContext    = 0x00,
    eRestrictedContext = 0x01
} EContextType;




Indicates the context on the current thread at the time the common language runtime (CLR) calls the IHostSecurityManager::GetSecurityContext method, or the context requested by the CLR in a call to the IHostSecurityManager::SetSecurityContext method.


Indicates a context over which the host has lower privileges, such as the garbage collector, or class or module constructors.

The CLR supplies one of the EContextType values as a parameter value in calls to the IHostSecurityManager::GetSecurityContext and IHostSecurityManager::SetSecurityContext methods.

Platforms: See .NET Framework System Requirements.

Header: MSCorEE.h

Library: MSCorEE.dll

.NET Framework Versions: 4.6 Preview, 4.5.2, 4.5.1, 4.5, 4, 3.5 SP1, 3.5, 3.0 SP1, 3.0, 2.0 SP1, 2.0

© 2015 Microsoft