NumaNode.ID Property


Gets the T:Microsoft.SqlServer.Management.Smo.NumaNode.ID of the NUMA node that is represented by this NumaNode object.

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

public int ID { get; }

Property Value

Type: System.Int32

The T:Microsoft.SqlServer.Management.Smo.NumaNode.ID of this NUMA node. The value is returned as an T:System.Int.

The ID property is read-only.

The following example shows how to display Microsoft.SqlServer.Management.Smo.NumaNode.ID for each NUMA node on the local instance of SQL Server.

using System;
using Microsoft.SqlServer.Management.Smo;

namespace samples
    class Program
        static void Main(string[] args)
            Server dbServer = new Server("(local)");
            foreach (NumaNode node in dbServer.AffinityInfo.NumaNodes)
                Console.WriteLine("NUMA node ID is {0}.", node.ID);
Return to top