Propriété 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
- name
Type : System. . :: . .String
A String value that specifies the name of the AlertCategory object in the AlertCategoryCollection collection.
Valeur de propriété
Type : Microsoft.SqlServer.Management.Smo.Agent. . :: . .AlertCategory
An AlertCategory object value that represents the alert category.