Condividi tramite


Costruttore Job

Initializes a new instance of the Job class.

Spazio dei nomi  Microsoft.SqlServer.Management.Smo.Agent
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Sintassi

'Dichiarazione
Public Sub New
'Utilizzo

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

Osservazioni

The default constructor initializes any fields to their default values.

Esempi

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