共用方式為


ItemById 方法

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

命名空間:  Microsoft.SqlServer.Management.Smo.Agent
組件:  Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)

語法

'宣告
Public Function ItemById ( _
    id As Guid _
) As Job
'用途
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

參數

傳回值

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

範例

使用集合