共用方式為


CpuCollection.GetByID 方法

Gets a Cpu object with the specified CPU ID from the collection.

命名空間:  Microsoft.SqlServer.Management.Smo
組件:  Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)

語法

'宣告
Public Function GetByID ( _
    cpuId As Integer _
) As Cpu
'用途
Dim instance As CpuCollection 
Dim cpuId As Integer 
Dim returnValue As Cpu 

returnValue = instance.GetByID(cpuId)
public Cpu GetByID(
    int cpuId
)
public:
Cpu^ GetByID(
    int cpuId
)
member GetByID : 
        cpuId:int -> Cpu
public function GetByID(
    cpuId : int
) : Cpu

參數

  • cpuId
    型別:System.Int32
    A Int32 value specifying the ID of the CPU to retrieve.

傳回值

型別:Microsoft.SqlServer.Management.Smo.Cpu
A Cpu object with the specified CPU ID.

請參閱

參考

CpuCollection 類別

Microsoft.SqlServer.Management.Smo 命名空間