System.Machine.CPUs Property

A collection of System.Machine.CPU objects.

Note   Objects of type System.Machine.CPU can only be accessed through the CPUs collection. This collection is a member of System.Machine.

This property is read-only.

Syntax

propVal = System.Machine.CPUs()

  

Parameters

  • collCPU [out]
    A collection of System.Machine.CPU objects.

Remarks

The following example shows how to select the System.Machine.CPU object at index 0 from the CPUs collection, then access the name property of that System.Machine.CPU object.

var collCPU = System.Machine.CPUs; 
            
var oCPU = collCPU.item(0);  
            
var strCPUName = oCPU.name;

Requirements

Minimum supported client Windows Vista
Minimum supported server Windows Server 2008
IDL Sidebar.idl
DLL Sidebar.Exe version 1.00 or later

See Also

System.Machine

Reference

count

item

System.Machine.CPU

 

 

Send comments about this topic to Microsoft

Build date: 2/24/2010

Build type: SDK