JobServer.GetJobByID(Guid) Method

Definition

The GetJobByID method returns a SQL-DMO Job object referencing the SQL Server Agent job identified by the specified job identifier.

public Microsoft.SqlServer.Management.Smo.Agent.Job GetJobByID (Guid jobId);
member this.GetJobByID : Guid -> Microsoft.SqlServer.Management.Smo.Agent.Job
Public Function GetJobByID (jobId As Guid) As Job

Parameters

jobId
Guid

Returns

Job

Applies to