Właściwość Item
Pobiera NumaNode obiektu.
Przestrzeń nazw: Microsoft.SqlServer.Management.Smo
Zestaw: Microsoft.SqlServer.Smo (w Microsoft.SqlServer.Smo.dll)
Syntax
'Deklaracja
Public ReadOnly Default Property Item ( _
index As Integer _
) As NumaNode
Get
'Użycie
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 supports the use of indexed properties, but not the declaration of new ones.
Parameters
- index
Typ: System. . :: . .Int32
Indeks z NumaNode obiektem, aby powrócić. Indeks musi zawierać się pomiędzy 0 a Count-1.
Wartość właściwości
Typ: Microsoft.SqlServer.Management.Smo. . :: . .NumaNode
Zwraca NumaNode obiektu.
Przykłady
Poniższy przykład przedstawia identyfikatory węzły NUMA w węzły NUMA tworzące NumaNodeCollection obiektu.
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);
}
}
}
}