Cpu.NumaNodeID Property


Gets the T:Microsoft.SqlServer.Management.Smo.Cpu.NumaNodeID of the NUMA node to which this Cpu object belongs.

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

public int NumaNodeID { get; }

Property Value

Type: System.Int32

An T:System.Int value that is assigned to the CPU represented by this Cpu instance.

The T:Microsoft.SqlServer.Management.Smo.Cpu.NumaNodeID member is read-only.

The following code example shows how to display the T:Microsoft.SqlServer.Management.Smo.Cpu.NumaNodeID for each CPU 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 (Cpu cpu in dbServer.AffinityInfo.Cpus)
                Console.WriteLine("The NumaNodeID for CPU ID {0} is {1}.",
                    cpu.ID, cpu.NumaNodeID);


$dbServer = new-Object Microsoft.SqlServer.Management.Smo.Server("(local)")

Foreach ($cpu in $dbServer.AffinityInfo.Cpus)
   Write-Host "The NumaNodeID for CPU ID" $cpu.ID "is" $cpu.NumaNodeID"."

Return to top