Método JobServer.GetJobByID
Returns a job with the specified ID value.
Namespace: Microsoft.SqlServer.Management.Smo.Agent
Assembly: Microsoft.SqlServer.Smo (em Microsoft.SqlServer.Smo.dll)
Sintaxe
'Declaração
Public Function GetJobByID ( _
jobId As Guid _
) As Job
'Uso
Dim instance As JobServer
Dim jobId As Guid
Dim returnValue As Job
returnValue = instance.GetJobByID(jobId)
public Job GetJobByID(
Guid jobId
)
public:
Job^ GetJobByID(
Guid jobId
)
member GetJobByID :
jobId:Guid -> Job
public function GetJobByID(
jobId : Guid
) : Job
Parâmetros
- jobId
Tipo: System.Guid
A Guid system object value that uniquely identifies the job.
Valor de retorno
Tipo: Microsoft.SqlServer.Management.Smo.Agent.Job
A Job object that is identified by the specified Guid system object value.
Exemplos
Agendando tarefas administrativas automáticas no SQL Server Agent
Consulte também
Referência
Namespace Microsoft.SqlServer.Management.Smo.Agent