JobCollection.Item Property (String, Int32)


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

Namespace:   Microsoft.SqlServer.Management.Smo.Agent
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

public Job this[
	string name,
	int categoryID
] { get; }


Type: System.String

A String value that specifies the name of the Job object in the JobCollection collection.

Type: System.Int32

An Int32 value that specifies the category for the job.

Property Value

Type: Microsoft.SqlServer.Management.Smo.Agent.Job

An Job object value that represents the job.

Using Collections

Any public static (Shared in Microsoft Visual Basic) members of this type are safe for multithreaded operations. Any instance members are not guaranteed to be thread safe.

Return to top