Windows Dev Center

Environment.ProcessorCount Property

Gets the number of processors on the current machine.

Namespace:  System
Assembly:  mscorlib (in mscorlib.dll)

public static int ProcessorCount { get; }

Property Value

Type: System.Int32
The 32-bit signed integer that specifies the number of processors on the current machine. There is no default.

Version Notes

Windows Phone

 This member has a SecurityCriticalAttribute attribute on Windows Phone. This attribute restricts this member to internal use. Application code that uses this member throws a MethodAccessException.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2015 Microsoft