次の方法で共有


Thread.CurrentContext プロパティ

スレッドが実行されている現在のコンテキストを取得します。

Public Shared ReadOnly Property CurrentContext As Context
[C#]
public static Context CurrentContext {get;}
[C++]
public: __property static Context* get_CurrentContext();
[JScript]
public static function get CurrentContext() : Context;

プロパティ値

現在のスレッド コンテキストを表す System.Runtime.Remoting.Contexts.Context

例外

例外の種類 条件
SecurityException 呼び出し元に、必要なアクセス許可がありません。

必要条件

プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ

.NET Framework セキュリティ:

参照

Thread クラス | Thread メンバ | System.Threading 名前空間