Propriété OperatorCategoryCollection.Item (String)
Gets an OperatorCategory 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 OperatorCategory
Get
'Utilisation
Dim instance As OperatorCategoryCollection
Dim name As String
Dim value As OperatorCategory
value = instance(name)
public OperatorCategory this[
string name
] { get; }
public:
property OperatorCategory^ default[String^ name] {
OperatorCategory^ get (String^ name);
}
member Item : OperatorCategory
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 OperatorCategory object in the OperatorCategoryCollection collection.
Valeur de propriété
Type : Microsoft.SqlServer.Management.Smo.Agent.OperatorCategory
An OperatorCategory object value that represents the alert category.