共用方式為


Add 方法

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

命名空間:  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
)

參數