Alert.AddNotification 方法
Designates an operator that receives a notification message when the alert is raised.
命名空間: Microsoft.SqlServer.Management.Smo.Agent
組件: Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)
語法
'宣告
Public Sub AddNotification ( _
operatorName As String, _
notifymethod As NotifyMethods _
)
'用途
Dim instance As Alert
Dim operatorName As String
Dim notifymethod As NotifyMethods
instance.AddNotification(operatorName, _
notifymethod)
public void AddNotification(
string operatorName,
NotifyMethods notifymethod
)
public:
void AddNotification(
String^ operatorName,
NotifyMethods notifymethod
)
member AddNotification :
operatorName:string *
notifymethod:NotifyMethods -> unit
public function AddNotification(
operatorName : String,
notifymethod : NotifyMethods
)
參數
- operatorName
型別:System.String
A String value that specifies the name of the operator.
- notifymethod
型別:Microsoft.SqlServer.Management.Smo.Agent.NotifyMethods
A NotifyMethods object value that specifies the notification method.
範例
請參閱
參考
Microsoft.SqlServer.Management.Smo.Agent 命名空間