Alert.AddNotification メソッド

警告が発生すると、通知メッセージを受信するオペレーターを指定します。

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

パラメーター

使用例

SQL Server エージェントでの自動管理タスクのスケジュール設定

関連項目

参照

Alert クラス

Microsoft.SqlServer.Management.Smo.Agent 名前空間

その他の技術情報

管理タスクの自動化 (SQL Server エージェント)

sp_add_notification (Transact-SQL)