NumaNode.GroupID NumaNode.GroupID NumaNode.GroupID Property

Definition

Gets the GroupID that is assigned to this NUMA node.

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

Returns the GroupID that is assigned to this NumaNode object. The return value is of type an Int32.

Examples

The following example shows how to display GroupID for each NUMA node on the local 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();  
            foreach (NumaNode node in dbServer.AffinityInfo.NumaNodes)  
            {  
                Console.WriteLine(  
                   "GroupID for NUMA node {0} is {1}",  
                    node.ID, node.GroupID);  
            }  
        }  
    }  
}  

Remarks

The GroupID property is read-only.

Applies to