Share via


NumaNodeCollection.SetAffinityToRange Method (Int32, Int32, NumaNodeAffinity, Boolean)

Sets the affinity mask for the Numa nodes in the specified range.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Syntax

'Declaration
Public Sub SetAffinityToRange ( _
    startNumaNodeId As Integer, _
    endNumaNodeId As Integer, _
    affinityMask As NumaNodeAffinity, _
    ignoreMissingIds As Boolean _
)
'Usage
Dim instance As NumaNodeCollection 
Dim startNumaNodeId As Integer 
Dim endNumaNodeId As Integer 
Dim affinityMask As NumaNodeAffinity 
Dim ignoreMissingIds As Boolean

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

Parameters

  • startNumaNodeId
    Type: System.Int32
    An Int32 from 0 to Count -1 that specifies the beginning of the range of Numa nodes. 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.
  • endNumaNodeId
    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.NumaNodeCollection.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.

See Also

Reference

NumaNodeCollection Class

SetAffinityToRange Overload

Microsoft.SqlServer.Management.Smo Namespace