Remarque
L’accès à cette page nécessite une autorisation. Vous pouvez essayer de vous connecter ou de modifier des répertoires.
L’accès à cette page nécessite une autorisation. Vous pouvez essayer de modifier des répertoires.
Gets a NumaNode object.
Espace de noms : Microsoft.SqlServer.Management.Smo
Assembly : Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)
Syntaxe
'Déclaration
Public ReadOnly Default Property Item ( _
index As Integer _
) As NumaNode
Get
'Utilisation
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 prend en charge l'utilisation de propriétés indexées, mais pas la déclaration de nouvelles propriétés.
Paramètres
- index
Type : System.Int32
Index of the NumaNode object to return. The index must be between 0 and Count-1.
Valeur de propriété
Type : Microsoft.SqlServer.Management.Smo.NumaNode
Returns a NumaNode object.
Exemples
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);
}
}
}
}