Compartir a través de


JobCategoryCollection.ItemById Método

Extracts a member from the JobCategoryCollection collection using a system-defined, unique identifier.

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 Integer _
) As JobCategory
'Uso
Dim instance As JobCategoryCollection 
Dim id As Integer 
Dim returnValue As JobCategory 

returnValue = instance.ItemById(id)
public JobCategory ItemById(
    int id
)
public:
JobCategory^ ItemById(
    int id
)
member ItemById : 
        id:int -> JobCategory
public function ItemById(
    id : int
) : JobCategory

Parámetros

Valor devuelto

Tipo: Microsoft.SqlServer.Management.Smo.Agent.JobCategory
A JobCategory object that has the specified ID value.

Ejemplos

Usar colecciones

Vea también

Referencia

JobCategoryCollection Clase

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