次の方法で共有


RemoveNotification メソッド

警告の定義からオペレーターの通知を削除します。

名前空間:  Microsoft.SqlServer.Management.Smo.Agent
アセンブリ:  Microsoft.SqlServer.Smo (Microsoft.SqlServer.Smo.dll)

構文

'宣言
Public Sub RemoveNotification ( _
    operatorName As String _
)
'使用
Dim instance As Alert
Dim operatorName As String

instance.RemoveNotification(operatorName)
public void RemoveNotification(
    string operatorName
)
public:
void RemoveNotification(
    String^ operatorName
)
member RemoveNotification : 
        operatorName:string -> unit 
public function RemoveNotification(
    operatorName : String
)

パラメーター

説明

AddNotification メソッドは、オペレーターを警告に関連付けます。指定されたオペレーターは、警告を生成するイベントが発生すると通知メッセージを受信します。警告が発生したときに、電子メール、ネットワーク ポップアップ メッセージ、またはポケットベルを使用して通知を送信できます。AddNotification メソッドを使用すると、警告の通知をオペレーターに割り当てる場合に、1 つ以上の通知メカニズムを指定できます。

RemoveNotification メソッドは、警告に対するすべてのオペレーター通知メカニズムを削除します。UpdateNotification メソッドを使用すると、警告とオペレーターの関連付けを削除せずに通知メカニズムを変更できます。