Compartilhar via


Método Alert.AddNotification

Designates an operator that receives a notification message when the alert is raised.

Namespace:  Microsoft.SqlServer.Management.Smo.Agent
Assembly:  Microsoft.SqlServer.Smo (em Microsoft.SqlServer.Smo.dll)

Sintaxe

'Declaração
Public Sub AddNotification ( _
    operatorName As String, _
    notifymethod As NotifyMethods _
)
'Uso
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
)

Parâmetros

Exemplos

Agendando tarefas administrativas automáticas no SQL Server Agent

Consulte também

Referência

Alert Classe

Namespace Microsoft.SqlServer.Management.Smo.Agent

Outros recursos

Tarefas de administração automatizadas (SQL Server Agent)

sp_add_notification (Transact-SQL)