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

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

Environment.ProcessorCount プロパティ

メモ : このプロパティは、.NET Framework version 2.0新しく追加されたものです。

現在のコンピュータ上のプロセッサ数を取得します

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

Public Shared ReadOnly Property
 ProcessorCount As Integer
Dim value As Integer

value = Environment.ProcessorCount
public static int ProcessorCount
 { get; }
public:
static property int ProcessorCount {
    int get ();
}
/** @property */
public static int get_ProcessorCount
 ()

プロパティ
現在のコンピュータ上のプロセッサ数を示す 32 ビット符号付き整数既定値はありません。

使用例使用例

ProcessorCount プロパティコード例次に示します

' This example demonstrates the 
'     Environment.ProcessorCount property.
Imports System

Class Sample
   Public Shared Sub Main()
      Console.WriteLine("The number of processors "
 & _
                        "on this computer is {0}.",
 _
                        Environment.ProcessorCount)
   End Sub 'Main
End Class 'Sample
'
'This example produces the following results:
'
'The number of processors on this computer is 1.
'
// This example demonstrates the 
//     Environment.ProcessorCount property.
using System;

class Sample 
{
    public static void Main()
 
    {
    Console.WriteLine("The number of processors " +
        "on this computer is {0}.", 
        Environment.ProcessorCount);
    }
}
/*
This example produces the following results:

The number of processors on this computer is 1.
*/
// This example demonstrates the 
//     Environment.ProcessorCount property.
using namespace System;
int main()
{
   Console::WriteLine( "The number of processors on this
 computer is {0}.", Environment::ProcessorCount );
}

/*
This example produces the following results:

The number of processors on this computer is 1.
*/
// This example demonstrates the 
// Environment.ProcessorCount property.
import System.*;

class Sample
{
    public static void main(String[]
 args)
    {
        Console.WriteLine("The number of processors " 
            + "on this computer is {0}.", 
            System.Convert.ToString(Environment.get_ProcessorCount()));
    } //main
} //Sample

/*
This example produces the following results:

The number of processors on this computer is 1.
*/
.NET Framework のセキュリティ.NET Frameworkセキュリティ
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照


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

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

辞書ショートカット

すべての辞書の索引

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

   

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



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

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

©2025 GRAS Group, Inc.RSS