共用方式為


AlertCategoryCollection.Add 方法

Adds an AlertCategory object to the AlertCategoryCollection collection.

命名空間:  Microsoft.SqlServer.Management.Smo.Agent
組件:  Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)

語法

'宣告
Public Sub Add ( _
    alertCategory As AlertCategory _
)
'用途
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
)

參數

範例

使用集合

請參閱

參考

AlertCategoryCollection 類別

Microsoft.SqlServer.Management.Smo.Agent 命名空間