NumaNodeCollection.Count NumaNodeCollection.Count NumaNodeCollection.Count Property

Definition

Gets the number of NumaNode entries in the collection.

public:
 property int Count { int get(); };
public int Count { get; }
Public ReadOnly Property Count As Integer
Property Value

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

Examples

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);  
        }  
    }  
}  

Applies to