Partager via


Propriété StatisticCollection.Item (String)

Gets a Statistic object in the collection by name.

Espace de noms :  Microsoft.SqlServer.Management.Smo
Assembly :  Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)

Syntaxe

'Déclaration
Public ReadOnly Default Property Item ( _
    name As String _
) As Statistic 
    Get
'Utilisation
Dim instance As StatisticCollection 
Dim name As String 
Dim value As Statistic 

value = instance(name)
public Statistic this[
    string name
] { get; }
public:
property Statistic^ default[String^ name] {
    Statistic^ get (String^ name);
}
member Item : Statistic
JScript prend en charge l'utilisation de propriétés indexées, mais pas la déclaration de nouvelles propriétés.

Paramètres

Valeur de propriété

Type : Microsoft.SqlServer.Management.Smo.Statistic
A Statistic object value that represents the statistic counter.

Exemples

Utilisation de collections

Voir aussi

Référence

StatisticCollection Classe

Surcharge Item

Espace de noms Microsoft.SqlServer.Management.Smo