Operator.AddNotification(String, NotifyMethods) 方法

定義

AddNotification 方法將營運商與警示連結起來。 指定的操作員在事件觸發警報時會收到通知訊息。

public void AddNotification(string alertName, Microsoft.SqlServer.Management.Smo.Agent.NotifyMethods notifymethod);
member this.AddNotification : string * Microsoft.SqlServer.Management.Smo.Agent.NotifyMethods -> unit
Public Sub AddNotification (alertName As String, notifymethod As NotifyMethods)

參數

alertName
String
notifymethod
NotifyMethods

適用於