Udostępnij za pośrednictwem


Właściwość NumaNode.AffinityMask

Pobiera lub ustawia typ koligacje dla węzeł NUMA reprezentowane przez to NumaNode obiektu.

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

Składnia

'Deklaracja
Public Property AffinityMask As NumaNodeAffinity
    Get
    Set
'Użycie
Dim instance As NumaNode
Dim value As NumaNodeAffinity

value = instance.AffinityMask

instance.AffinityMask = value
public NumaNodeAffinity AffinityMask { get; set; }
public:
property NumaNodeAffinity AffinityMask {
    NumaNodeAffinity get ();
    void set (NumaNodeAffinity value);
}
member AffinityMask : NumaNodeAffinity with get, set
function get AffinityMask () : NumaNodeAffinity
function set AffinityMask (value : NumaNodeAffinity)

Wartość właściwości

Typ: Microsoft.SqlServer.Management.Smo.NumaNodeAffinity
Zwraca NumaNodeAffinity wartość, która określa bieżący stan tego węzeł NUMA.

Uwagi

Próby zestaw AffinityMask Właściwość Partial spowoduje zgłoszenie wyjątku: WrongPropertyValueException(NumaNodeAffinity cannot be set to Partial. Change the affinity setting to None or Full.).

Przykłady

W poniższym przykładzie jak zestaw koligacji węźle NUMA do None na każdym węźle NUMA lokalnego wystąpienie SQL Server.

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.None;
        }
    }
}