共用方式為


AlertCollection.Add 方法

Adds an Alert object to the collection.

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

語法

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

參數

請參閱

參考

AlertCollection 類別

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