Job 构造函数

Initializes a new instance of the Job class.

命名空间:  Microsoft.SqlServer.Management.Smo.Agent
程序集:  Microsoft.SqlServer.Smo(在 Microsoft.SqlServer.Smo.dll 中)

语法

声明
Public Sub New
用法

Dim instance As New Job()
public Job()
public:
Job()
new : unit -> Job
public function Job()

注释

The default constructor initializes any fields to their default values.

示例

The following code example creates a new, default instance of the Job class.

C#

Job jb = new Job()

PowerShell

$jb = new-object Microsoft.SqlServer.Management.Smo.Agent.Job