Compartir a través de


NumaNodeCollection.Count Propiedad

Gets the number of NumaNode entries in the collection.

Espacio de nombres:  Microsoft.SqlServer.Management.Smo
Ensamblado:  Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)

Sintaxis

'Declaración
Public ReadOnly Property Count As Integer 
    Get
'Uso
Dim instance As NumaNodeCollection 
Dim value As Integer 

value = instance.Count
public int Count { get; }
public:
virtual property int Count {
    int get () sealed;
}
abstract Count : int 
override Count : int
final function get Count () : int

Valor de la propiedad

Tipo: System.Int32
Returns the number of NumaNode entries in the collection. The return type is an int value.

Implementa

ICollection.Count

Ejemplos

The following example shows how to determine the total number of NUMA nodes on an 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();
            Console.WriteLine("Total NUMA nodes: Microsoft.SqlServer.Smo",
                dbServer.AffinityInfo.NumaNodes.Count);
        }
    }
}

Vea también

Referencia

NumaNodeCollection Clase

Espacio de nombres Microsoft.SqlServer.Management.Smo