Proprietà AlertCategoryCollection.Item (String)
Gets an AlertCategory 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 AlertCategory
Get
'Utilizzo
Dim instance As AlertCategoryCollection
Dim name As String
Dim value As AlertCategory
value = instance(name)
public AlertCategory this[
string name
] { get; }
public:
property AlertCategory^ default[String^ name] {
AlertCategory^ get (String^ name);
}
member Item : AlertCategory
JScript supporta l'utilizzo di proprietà indicizzate, ma non la dichiarazione di nuove proprietà.
Parametri
- name
Tipo: System.String
A String value that specifies the name of the AlertCategory object in the AlertCategoryCollection collection.
Valore proprietà
Tipo: Microsoft.SqlServer.Management.Smo.Agent.AlertCategory
An AlertCategory object value that represents the alert category.