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

屬性值

Context,代表目前的執行緒內容。

屬性

例外狀況

呼叫端沒有必要的權限。

適用於