共用方式為


NumaNode.GroupID 屬性

Gets the GroupID that is assigned to this NUMA node.

命名空間:  Microsoft.SqlServer.Management.Smo
組件:  Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)

語法

'宣告
Public ReadOnly Property GroupID As Integer 
    Get
'用途
Dim instance As NumaNode 
Dim value As Integer 

value = instance.GroupID
public int GroupID { get; }
public:
property int GroupID {
    int get ();
}
member GroupID : int
function get GroupID () : int

屬性值

型別:System.Int32
Returns the GroupID that is assigned to this NumaNode object. The return value is of type an Int.

備註

The GroupID property is read-only.

範例

The following example shows how to display [Microsoft.SqlServer.Management.Smo.NumaNode.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);
            }
        }
    }
}

請參閱

參考

NumaNode 類別

Microsoft.SqlServer.Management.Smo 命名空間