Partager via


Propriété 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.