Partager via


Propriété Item (String, Int32)

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

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, _
    categoryID As Integer _
) As Job
    Get
'Utilisation
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 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. . :: . .Job
An Job object value that represents the job.

Notes

Utilisation de collections

Tout membre statique public (Partagé dans Microsoft Visual Basic) de ce type est sûr dans le cadre des opérations à plusieurs threads. Tous les membres de l'instance ne sont pas garantis comme étant thread-safe.