CallContext.HostContext 属性

定义

获取或设置与当前线程相关联的主机上下文。

public:
 static property System::Object ^ HostContext { System::Object ^ get(); void set(System::Object ^ value); };
public static object HostContext { get; set; }
public static object HostContext { [System.Security.SecurityCritical] get; [System.Security.SecurityCritical] set; }
static member HostContext : obj with get, set
[<get: System.Security.SecurityCritical>]
[<set: System.Security.SecurityCritical>]
static member HostContext : obj with get, set
Public Shared Property HostContext As Object

属性值

与当前线程相关联的主机上下文。

属性

例外

直接调用方没有基础结构权限。

适用于