EContextType 枚举

描述当前执行线程的安全上下文。

语法

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

成员

成员 说明
eCurrentContext 指示当公共语言运行时 (CLR) 调用 IHostSecurityManager::GetSecurityContext 方法,或 CLR 请求的上下文调用 IHostSecurityManager::SetSecurityContext 方法时,当前线程的上下文。
eRestrictedContext 指示主机权限较低的上下文,如垃圾回收器,或类或模块构造函数。

备注

在调用 IHostSecurityManager::GetSecurityContextIHostSecurityManager::SetSecurityContext 方法时,CLR 将 EContextType 值之一作为参数值提供。

要求

平台:请参阅系统要求

标头:MSCorEE.h

库:MSCorEE.dll

.NET Framework 版本:自 2.0 起可用

另请参阅