Udostępnij za pośrednictwem


Właściwość AlertCollection.Item (String)

Pobiera Alert obiektu kolekcja według nazwy.

Przestrzeń nazw:  Microsoft.SqlServer.Management.Smo.Agent
Zestaw:  Microsoft.SqlServer.Smo (w Microsoft.SqlServer.Smo.dll)

Składnia

'Deklaracja
Public ReadOnly Default Property Item ( _
    name As String _
) As Alert
    Get
'Użycie
Dim instance As AlertCollection
Dim name As String
Dim value As Alert

value = instance(name)
public Alert this[
    string name
] { get; }
public:
property Alert^ default[String^ name] {
    Alert^ get (String^ name);
}
member Item : Alert
Język JScript obsługuje używanie indeksowanych właściwości, ale nie obsługuje deklarowania nowych.

Parametry

Wartość właściwości

Typ: Microsoft.SqlServer.Management.Smo.Agent.Alert
Alert Wartość obiektu, który reprezentuje alert.

Uwagi

Wszystkie publiczne, statyczne (udostępnione w programie Microsoft Visual Basic) elementy członkowskie tego typu są bezpieczne dla operacji wielowątkowych. Nie ma gwarancji, że elementy członkowskie wystąpień będą bezpieczne dla wątków.