Share via


AlertCategoryCollection.Add Method

Adds an AlertCategory object to the AlertCategoryCollection collection.

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

Syntax

'Declaration
Public Sub Add ( _
    alertCategory As AlertCategory _
)
'Usage
Dim instance As AlertCategoryCollection
Dim alertCategory As AlertCategory

instance.Add(alertCategory)
public void Add(
    AlertCategory alertCategory
)
public:
void Add(
    AlertCategory^ alertCategory
)
member Add : 
        alertCategory:AlertCategory -> unit 
public function Add(
    alertCategory : AlertCategory
)

Parameters