Proprietà JobCategoryCollection.Item (String)

Gets a JobCategory 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 JobCategory 
    Get
'Utilizzo
Dim instance As JobCategoryCollection 
Dim name As String 
Dim value As JobCategory 

value = instance(name)
public JobCategory this[
    string name
] { get; }
public:
property JobCategory^ default[String^ name] {
    JobCategory^ get (String^ name);
}
member Item : JobCategory
JScript supporta l'utilizzo di proprietà indicizzate, ma non la dichiarazione di nuove proprietà.

Parametri

Valore proprietà

Tipo: Microsoft.SqlServer.Management.Smo.Agent.JobCategory
A JobCategory object value that represents the alert category.

Esempi

Utilizzo delle raccolte

Vedere anche

Riferimento

JobCategoryCollection Classe

Overload Item

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