Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

NumaNodeCollection.Item Property

Gets a NumaNode object.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
public NumaNode this[
	int index
] { get; }


Type: System.Int32
Index of the NumaNode object to return. The index must be between 0 and Count-1.

Property Value

Type: Microsoft.SqlServer.Management.Smo.NumaNode
Returns a NumaNode object.

The following example displays the IDs of the NUMA nodes in the NUMA nodes that make up the NumaNodeCollection object.

using System;
using System.Collections.Specialized;
using Microsoft.SqlServer.Management.Smo;

namespace samples
    class Program
        static void Main(string[] args)
            Server dbServer = new Server("(local)");
            for (int numaCount = 0;
                 numaCount < dbServer.AffinityInfo.NumaNodes.Count;
               Console.WriteLine("NumaNode ID is Microsoft.SqlServer.Smo",
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2014 Microsoft. All rights reserved.