Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Count Property
Collapse the table of content
Expand the table of content

NumaNodeCollection.Count Property

Gets the number of NumaNode entries in the collection.

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

public int Count { get; }

Property Value

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

Implements

ICollection.Count

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

Community Additions

ADD
Show:
© 2015 Microsoft