NumaNodeAffinity 列舉
The NumaNodeAffinity enumeration defines the affinity states for a Cpu object.
命名空間: Microsoft.SqlServer.Management.Smo
組件: Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)
語法
'宣告
Public Enumeration NumaNodeAffinity
'用途
Dim instance As NumaNodeAffinity
public enum NumaNodeAffinity
public enum class NumaNodeAffinity
type NumaNodeAffinity
public enum NumaNodeAffinity
範例
The following example shows how to set the affinity for each NUMA node in the local instance of SQL Server to Full affinity.
using System;
using Microsoft.SqlServer.Management.Smo;
namespace samples
{
class Program
{
static void Main(string[] args)
{
Server dbServer = new Server("(local)");
dbServer.Refresh();
foreach (NumaNode node in dbServer.AffinityInfo.NumaNodes)
node.AffinityMask = NumaNodeAffinity.Full;
dbServer.Alter();
}
}
}