Environment.ProcessorCount プロパティ
アセンブリ: mscorlib (mscorlib.dll 内)


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. */


Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からEnvironment.ProcessorCount プロパティを検索する場合は、下記のリンクをクリックしてください。

- Environment.ProcessorCount プロパティのページへのリンク