Thread.CurrentContext 屬性

定義

取得執行緒目前執行的上下文。

public:
 static property System::Runtime::Remoting::Contexts::Context ^ CurrentContext { System::Runtime::Remoting::Contexts::Context ^ get(); };
public static System.Runtime.Remoting.Contexts.Context CurrentContext { get; }
public static System.Runtime.Remoting.Contexts.Context CurrentContext { [System.Security.SecurityCritical] get; }
static member CurrentContext : System.Runtime.Remoting.Contexts.Context
[<get: System.Security.SecurityCritical>]
static member CurrentContext : System.Runtime.Remoting.Contexts.Context
Public Shared ReadOnly Property CurrentContext As Context

屬性值

A Context 代表目前執行緒的上下文。

屬性

例外狀況

來電者沒有所需的權限。

適用於