Propriété AlertCategoryCollection.Item (String)

Gets an AlertCategory object in the collection by name.

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 ( _
    name As String _
) As AlertCategory 
    Get
'Utilisation
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 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.AlertCategory
An AlertCategory object value that represents the alert category.

Exemples

Utilisation de collections

Voir aussi

Référence

AlertCategoryCollection Classe

Surcharge Item

Espace de noms Microsoft.SqlServer.Management.Smo.Agent