Proprietà Item (String, Int32)

Gets an Job object in the collection by name and category.

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, _
    categoryID As Integer _
) As Job
    Get
'Utilizzo
Dim instance As JobCollection
Dim name As String
Dim categoryID As Integer
Dim value As Job

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

Parametri

Valore proprietà

Tipo: Microsoft.SqlServer.Management.Smo.Agent. . :: . .Job
An Job object value that represents the job.

Osservazioni

Utilizzo delle raccolte

Tutti i membri statici pubblici (Shared in Microsoft Visual Basic) di questo tipo sono sicuri per le operazioni a thread multipli. Non è invece garantita la sicurezza dei membri dell'istanza.