Thread.CurrentThread プロパティとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > Thread.CurrentThread プロパティの意味・解説 

Thread.CurrentThread プロパティ

現在実行中のスレッド取得します

名前空間: System.Threading
アセンブリ: mscorlib (mscorlib.dll 内)
構文構文

Public Shared ReadOnly Property
 CurrentThread As Thread
Dim value As Thread

value = Thread.CurrentThread
public static Thread CurrentThread { get;
 }
public:
static property Thread^ CurrentThread {
    Thread^ get ();
}
/** @property */
public static Thread get_CurrentThread ()

プロパティ
現在実行中のスレッドを表す Thread

使用例使用例

次のコード例は IsThreadPoolThread プロパティ例の一部です。

Shared Sub ThreadMethod()
    Console.WriteLine("ThreadOne, executing ThreadMethod, "
 & _
        "is from the thread pool? {0}", _
        Thread.CurrentThread.IsThreadPoolThread)
End Sub
static void ThreadMethod()
{
    Console.WriteLine("ThreadOne, executing ThreadMethod, " +
        "is {0}from the thread pool.", 
        Thread.CurrentThread.IsThreadPoolThread ? "" : "not ");
}
static void ThreadMethod()
{
   Console::WriteLine( "ThreadOne, executing ThreadMethod, "
   "is {0}from the thread pool.", Thread::CurrentThread->IsThreadPoolThread
 ? (String^)"" : "not " );
}


プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照


このページでは「.NET Framework クラス ライブラリ リファレンス」からThread.CurrentThread プロパティを検索した結果を表示しています。
Weblioに収録されているすべての辞書からThread.CurrentThread プロパティを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からThread.CurrentThread プロパティ を検索

英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

「Thread.CurrentThread プロパティ」の関連用語

Thread.CurrentThread プロパティのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



Thread.CurrentThread プロパティのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2025 Microsoft.All rights reserved.

©2025 GRAS Group, Inc.RSS