Класс NumaNode

The NumaNode object represents the settings for a NUMA node on an instance of SQL Server.

Иерархия наследования

System. . :: . .Object
  Microsoft.SqlServer.Management.Smo..::..NumaNode

Пространство имен:  Microsoft.SqlServer.Management.Smo
Сборка:  Microsoft.SqlServer.Smo (в Microsoft.SqlServer.Smo.dll)

Синтаксис

'Декларация
Public NotInheritable Class NumaNode
'Применение
Dim instance As NumaNode
public sealed class NumaNode
public ref class NumaNode sealed
[<SealedAttribute>]
type NumaNode =  class end
public final class NumaNode

Тип NumaNode обеспечивает доступ к следующим элементам.

Свойства

  Имя Описание
Открытое свойство AffinityMask Gets or sets the affinity type for the NUMA node represented by this NumaNode object.
Открытое свойство Cpus Gets a collection of Cpu objects that belong to this NumaNode object.
Открытое свойство GroupID Gets the GroupID that is assigned to this NUMA node.
Открытое свойство ID Gets the ID of the NUMA node that is represented by this NumaNode object.

В начало

Методы

  Имя Описание
Открытый метод Equals (Производный от Object.)
Защищенный метод Finalize (Производный от Object.)
Открытый метод GetHashCode (Производный от Object.)
Открытый метод GetType (Производный от Object.)
Защищенный метод MemberwiseClone (Производный от Object.)
Открытый метод ToString (Производный от Object.)

В начало

Замечания

Access to the NumaNode object is though the AffinityInfo object that is contained in the Server object.

Примеры

The following example shows how to display all the NUMA nodes on the local instance of SQL Server and the CPUs that belong to each NUMA node.

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)
            {
                //Display the AffinityMask, GroupID and ID of
                //each NUMA node.
                Console.WriteLine("AffinityMask: {0}\n" +
                                  "GroupID:      {1}\n" +
"ID:           {2}\n",
                    node.AffinityMask.ToString(),
                    node.GroupID, node.ID);
                //Display the ID of each CPU that belongs
                //to this NUMA node.
                Console.Write("CPUS          :");
                foreach(Cpu cpu in node.Cpus)
                    Console.Write("{0} ", cpu.ID);
            }
        }
    }
}

Безопасность многопоточности

Любые открытые статический (Shared в Visual Basic) элементы этого типа потокобезопасны. Потокобезопасность с элементами экземпляров не гарантируется.