NumaNodeCollection.Item[Int32] NumaNodeCollection.Item[Int32] NumaNodeCollection.Item[Int32] Property

Definition

Gets a NumaNode object.

public:
 property Microsoft::SqlServer::Management::Smo::NumaNode ^ default[int] { Microsoft::SqlServer::Management::Smo::NumaNode ^ get(int index); };
public Microsoft.SqlServer.Management.Smo.NumaNode this[int index] { get; }
Default Public ReadOnly Property Item(index As Integer) As NumaNode
Parameters
index
Int32 Int32 Int32

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

Property Value

Returns a NumaNode object.

Examples

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;  
                 numaCount++)  
           {  
               Console.WriteLine("NumaNode ID is Microsoft.SqlServer.Smo",  
               dbServer.AffinityInfo.NumaNodes[numaCount].ID);  
           }  
        }  
    }  
}  

Applies to