Partager via


Propriété Item (Int32)

Gets an Alert object in the collection by index number.

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

Syntaxe

'Déclaration
Public ReadOnly Default Property Item ( _
    index As Integer _
) As Alert
    Get
'Utilisation
Dim instance As AlertCollection
Dim index As Integer
Dim value As Alert

value = instance(index)
public Alert this[
    int index
] { get; }
public:
property Alert^ default[int index] {
    Alert^ get (int index);
}
member Item : Alert
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.Agent. . :: . .Alert
An Alert object value that represents the alert.

Notes

Tout membre statique public (Partagé dans Microsoft Visual Basic) de ce type est sûr dans le cadre des opérations à plusieurs threads. Tous les membres de l'instance ne sont pas garantis comme étant thread-safe.