NumaNode オブジェクトを取得します。
名前空間: Microsoft.SqlServer.Management.Smo
アセンブリ: Microsoft.SqlServer.Smo (Microsoft.SqlServer.Smo.dll)
構文
'宣言
Public ReadOnly Default Property Item ( _
index As Integer _
) As NumaNode
Get
'使用
Dim instance As NumaNodeCollection
Dim index As Integer
Dim value As NumaNode
value = instance(index)
public NumaNode this[
int index
] { get; }
public:
property NumaNode^ default[int index] {
NumaNode^ get (int index);
}
member Item : NumaNode
JScript はインデックス化されたプロパティの使用をサポートしていますが、新規の宣言はサポートしていません。
パラメーター
- index
型: System.Int32
返す NumaNode オブジェクトのインデックスです。 インデックスの値は、0 ~ Count-1 までの値である必要があります。
プロパティ値
型: Microsoft.SqlServer.Management.Smo.NumaNode
NumaNode オブジェクトを返します。
使用例
次の例では、NumaNodeCollection オブジェクトを構成する NUMA ノード内の NUMA ノードの ID を表示します。
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);
}
}
}
}