JobCollection.ItemById Method

Gets the Job object that is specified by the Guid ID value.

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

Syntax

'Declaration
Public Function ItemById ( _
    id As Guid _
) As Job
'Usage
Dim instance As JobCollection 
Dim id As Guid 
Dim returnValue As Job 

returnValue = instance.ItemById(id)
public Job ItemById(
    Guid id
)
public:
Job^ ItemById(
    Guid id
)
member ItemById : 
        id:Guid -> Job
public function ItemById(
    id : Guid
) : Job

Parameters

  • id
    Type: System.Guid
    A Guid system value that uniquely identifies the job.

Return Value

Type: Microsoft.SqlServer.Management.Smo.Agent.Job
A Jobobject value that is specified by the Guid ID value.

Examples

Using Collections

See Also

Reference

JobCollection Class

Microsoft.SqlServer.Management.Smo.Agent Namespace