Share via


Méthode SetAffinityToRange (Int32, Int32, Boolean, Boolean)

Sets the affinity mask for the CPUs in the specified range.

Espace de noms :  Microsoft.SqlServer.Management.Smo
Assembly :  Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)

Syntaxe

'Déclaration
Public Sub SetAffinityToRange ( _
    startCpuId As Integer, _
    endCpuId As Integer, _
    affinityMask As Boolean, _
    ignoreMissingIds As Boolean _
)
'Utilisation
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
)

Paramètres

  • startCpuId
    Type : System. . :: . .Int32
    An Int32 from 0 to Count -1 that specifies the beginning of the range of CPUs. If startIndex is not within the valid range, the following exception is returned: Specified argument was out of the range of valid values. Parameter name: startIndex.
  • endCpuId
    Type : System. . :: . .Int32
    An Int32 that specifies the endIndex of the range. endIndex must be greater than or equal to startIndex and less than [P:Microsoft.SqlServer.Management.Smo.CpuCollection.Count.]
    If endIndex is not within the valid range, the following exception is returned: Specified argument was out of the range of valid values. Parameter name: endIndexd.
    If endIndex is less than startIndex, the following exception is returned: The specified range of CPUs is not valid. The value for startIndex must be less than the value for endIndex.
  • affinityMask
    Type : System. . :: . .Boolean
    A Boolean that specifies true if the affinity is set to each CPU in the specified range. If false, affinity is removed from each CPU in the specified range.