Share via


AlertCollection.Add Method

Adds an alert on the instance of Microsoft SQL Server as defined by the Alert object.

Namespace:  Microsoft.SqlServer.Management.Smo.Agent
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Syntax

'Declaration
Public Sub Add ( _
    alert As Alert _
)
'Usage
Dim instance As AlertCollection
Dim alert As Alert

instance.Add(alert)
public void Add(
    Alert alert
)
public:
void Add(
    Alert^ alert
)
member Add : 
        alert:Alert -> unit 
public function Add(
    alert : Alert
)

Parameters