Proprietà AlertCollection.Item (String)

Gets an Alert object in the collection by name.

Spazio dei nomi  Microsoft.SqlServer.Management.Smo.Agent
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Sintassi

'Dichiarazione
Public ReadOnly Default Property Item ( _
    name As String _
) As Alert 
    Get
'Utilizzo
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
JScript supporta l'utilizzo di proprietà indicizzate, ma non la dichiarazione di nuove proprietà.

Parametri

Valore proprietà

Tipo: Microsoft.SqlServer.Management.Smo.Agent.Alert
An Alert object value that represents the alert.

Osservazioni

Tutti i membri statici pubblici (Shared in Microsoft Visual Basic) di questo tipo sono sicuri per le operazioni a thread multipli. Non è invece garantita la sicurezza dei membri dell'istanza.

Esempi

Utilizzo delle raccolte

Vedere anche

Riferimento

AlertCollection Classe

Overload Item

Spazio dei nomi Microsoft.SqlServer.Management.Smo.Agent