Compartir a través de


JobCollection.ItemById Método

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

Espacio de nombres:  Microsoft.SqlServer.Management.Smo.Agent
Ensamblado:  Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)

Sintaxis

'Declaración
Public Function ItemById ( _
    id As Guid _
) As Job
'Uso
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

Parámetros

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

Valor devuelto

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

Ejemplos

Usar colecciones

Vea también

Referencia

JobCollection Clase

Espacio de nombres Microsoft.SqlServer.Management.Smo.Agent