Alert Alert Alert Constructors

Definition

Overloads

Alert() Alert() Alert()

Initializes a new instance of the Alert class.

Alert(JobServer, String) Alert(JobServer, String)

Initializes a new instance of the Alert class on the specified instance of SQL Server Agent and with the specified name

Alert() Alert() Alert()

Initializes a new instance of the Alert class.

public:
 Alert();
public Alert ();
Public Sub New ()

Examples

Scheduling Automatic Administrative Tasks in SQL Server Agent

Remarks

The default constructor initializes any fields to their default values.

Alert(JobServer, String) Alert(JobServer, String)

Initializes a new instance of the Alert class on the specified instance of SQL Server Agent and with the specified name

public:
 Alert(Microsoft::SqlServer::Management::Smo::Agent::JobServer ^ jobServer, System::String ^ name);
public Alert (Microsoft.SqlServer.Management.Smo.Agent.JobServer jobServer, string name);
Parameters
jobServer
JobServer JobServer JobServer

A JobServer object that specifies the MicrosoftSQL Server Agent Service.

name
String String String

A String value that specifies the name of the alert.

Examples

Scheduling Automatic Administrative Tasks in SQL Server Agent

Applies to