共用方式為


SchedulerCollection.SetAffinityToRange 方法

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

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

語法

'宣告
Public Sub SetAffinityToRange ( _
    startIndex As Integer, _
    endIndex As Integer, _
    affinityMask As Boolean _
)
'用途
Dim instance As SchedulerCollection 
Dim startIndex As Integer 
Dim endIndex As Integer 
Dim affinityMask As Boolean

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

參數

  • startIndex
    型別:System.Int32
    The beginning of the range.
  • affinityMask
    型別:System.Boolean
    true to set the affinity to each scheduler in the specified range; otherwise, false.

請參閱

參考

SchedulerCollection 類別

Microsoft.SqlServer.Management.Smo 命名空間