Alert.AddNotification(String, NotifyMethods) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
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