Udostępnij za pośrednictwem


Metoda CpuCollection.SetAffinityToRange (Int32, Int32, Boolean, Boolean)

Ustawia maski koligacji procesorów w określonym zakres.

Przestrzeń nazw:  Microsoft.SqlServer.Management.Smo
Zestaw:  Microsoft.SqlServer.Smo (w Microsoft.SqlServer.Smo.dll)

Składnia

'Deklaracja
Public Sub SetAffinityToRange ( _
    startCpuId As Integer, _
    endCpuId As Integer, _
    affinityMask As Boolean, _
    ignoreMissingIds As Boolean _
)
'Użycie
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
)

Parametry

  • startCpuId
    Typ: System.Int32
    Int32 Od 0 do Count -1, który określa początek z zakres z procesorów.Jeśli startIndex jest nie do prawidłowego zakres, zwracany jest następujący wyjątek: Specified argument was out of the range of valid values. Parameter name: startIndex.
  • endCpuId
    Typ: System.Int32
    Int32 , Który określa endIndex zakres. endIndexmusi być większa lub równa startIndex i mniej niż [P:Microsoft.SqlServer.Management.Smo.CpuCollection.Count.]
    Jeśli endIndex jest nie do prawidłowego zakres, zwracany jest następujący wyjątek: Specified argument was out of the range of valid values. Parameter name: endIndexd.
    Jeśli endIndex jest mniejsza niż startIndex, zwróciła następujący wyjątek: The specified range of CPUs is not valid. The value for startIndex must be less than the value for endIndex.
  • affinityMask
    Typ: System.Boolean
    A Boolean , który określa true Jeżeli koligacja jest zestaw do każdego procesora CPU w określonym zakresie.Jeśli false, koligacja jest usuwana z każdego Procesora w określonym zakres.