共用方式為


JobServer.Jobs 屬性

Represents a collection of Job objects. Each Job object represents a job defined on SQL Server Agent.

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

語法

'宣告
<SfcObjectAttribute(SfcContainerRelationship.ObjectContainer, SfcContainerCardinality.ZeroToAny,  _
    GetType(Job))> _
Public ReadOnly Property Jobs As JobCollection 
    Get
'用途
Dim instance As JobServer 
Dim value As JobCollection 

value = instance.Jobs
[SfcObjectAttribute(SfcContainerRelationship.ObjectContainer, SfcContainerCardinality.ZeroToAny, 
    typeof(Job))]
public JobCollection Jobs { get; }
[SfcObjectAttribute(SfcContainerRelationship::ObjectContainer, SfcContainerCardinality::ZeroToAny, 
    typeof(Job))]
public:
property JobCollection^ Jobs {
    JobCollection^ get ();
}
[<SfcObjectAttribute(SfcContainerRelationship.ObjectContainer, SfcContainerCardinality.ZeroToAny, 
    typeof(Job))>]
member Jobs : JobCollection
function get Jobs () : JobCollection

屬性值

型別:Microsoft.SqlServer.Management.Smo.Agent.JobCollection
A JobCollection that represents the jobs defined on SQL Server Agent.

範例

使用 SQL Server Agent 排程自動管理工作

請參閱

參考

JobServer 類別

Microsoft.SqlServer.Management.Smo.Agent 命名空間

其他資源

自動化管理工作 (SQL Server Agent)

sp_help_job (Transact-SQL)