次の方法で共有


SetAffinityToRange メソッド (Int32, Int32, Boolean, Boolean)

指定した範囲で CPU に対する Affinity Mask を設定します。

名前空間:  Microsoft.SqlServer.Management.Smo
アセンブリ:  Microsoft.SqlServer.Smo (Microsoft.SqlServer.Smo.dll)

構文

'宣言
Public Sub SetAffinityToRange ( _
    startCpuId As Integer, _
    endCpuId As Integer, _
    affinityMask As Boolean, _
    ignoreMissingIds As Boolean _
)
'使用
Dim instance As CpuCollection
Dim startCpuId As Integer
Dim endCpuId As Integer
Dim affinityMask As Boolean
Dim ignoreMissingIds As Boolean

instance.SetAffinityToRange(startCpuId, _
    endCpuId, affinityMask, ignoreMissingIds)
public void SetAffinityToRange(
    int startCpuId,
    int endCpuId,
    bool affinityMask,
    bool ignoreMissingIds
)
public:
void SetAffinityToRange(
    int startCpuId, 
    int endCpuId, 
    bool affinityMask, 
    bool ignoreMissingIds
)
member SetAffinityToRange : 
        startCpuId:int * 
        endCpuId:int * 
        affinityMask:bool * 
        ignoreMissingIds:bool -> unit 
public function SetAffinityToRange(
    startCpuId : int, 
    endCpuId : int, 
    affinityMask : boolean, 
    ignoreMissingIds : boolean
)

パラメーター

  • startCpuId
    型: System. . :: . .Int32
    CPU の範囲の開始を指定する、0 ~ Count -1 の Int32 です。startIndex が有効範囲内でない場合は、Specified argument was out of the range of valid values. Parameter name: startIndex という例外が返されます。
  • endCpuId
    型: System. . :: . .Int32
    範囲の endIndex を指定する Int32。endIndex は、startIndex 以上および [P:Microsoft.SqlServer.Management.Smo.CpuCollection.Count.] 未満である必要があります。
    endIndex が有効範囲内でない場合は、Specified argument was out of the range of valid values. Parameter name: endIndex という例外が返されます。
    endIndex が startIndex 未満である場合は、The specified range of CPUs is not valid. The value for startIndex must be less than the value for endIndex. という例外が返されます。
  • affinityMask
    型: System. . :: . .Boolean
    指定された範囲内の個々の CPU に対して関係が設定される場合は true を示す Boolean です。false の場合、指定した範囲内の個々の CPU から関係が削除されます。