Alert.AddNotification(String, NotifyMethods) 方法

定义

AddNotification 方法将运算符与警报相关联。 指定在引发警报的事件时接收通知消息的操作员。

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

参数

operatorName
String
notifymethod
NotifyMethods

适用于