Propriedade do RDL Cpu.NumaNodeID

Gets the NumaNodeID of the NUMA node to which this Cpu object belongs.

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

Sintaxe

'Declaração
Public ReadOnly Property NumaNodeID As Integer 
    Get
'Uso
Dim instance As Cpu 
Dim value As Integer 

value = instance.NumaNodeID
public int NumaNodeID { get; }
public:
property int NumaNodeID {
    int get ();
}
member NumaNodeID : int
function get NumaNodeID () : int

Valor da propriedade

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

Comentários

The NumaNodeID member is read-only.

Exemplos

The following code example shows how to display the 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");
            dbServer.Refresh();

            foreach (Cpu cpu in dbServer.AffinityInfo.Cpus)
            {
                Console.WriteLine("The NumaNodeID for CPU ID {0} is {1}.",
                    cpu.ID, cpu.NumaNodeID);
            }
        }
    }
}

Powershell

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

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

Consulte também

Referência

Cpu Classe

Namespace Microsoft.SqlServer.Management.Smo