NumaNodeCollection.Item 속성
Gets a NumaNode object.
네임스페이스: 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
Index of the NumaNode object to return. The index must be between 0 and Count-1.
속성 값
유형: 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;
numaCount++)
{
Console.WriteLine("NumaNode ID is Microsoft.SqlServer.Smo",
dbServer.AffinityInfo.NumaNodes[numaCount].ID);
}
}
}
}