Méthode Alert.AddNotification
Designates an operator that receives a notification message when the alert is raised.
Espace de noms : Microsoft.SqlServer.Management.Smo.Agent
Assembly : Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)
Syntaxe
'Déclaration
Public Sub AddNotification ( _
operatorName As String, _
notifymethod As NotifyMethods _
)
'Utilisation
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
)
Paramètres
- operatorName
Type : System.String
A String value that specifies the name of the operator.
- notifymethod
Type : Microsoft.SqlServer.Management.Smo.Agent.NotifyMethods
A NotifyMethods object value that specifies the notification method.
Exemples
Planification des tâches administratives automatiques dans l'Agent SQL Server
Voir aussi
Référence
Espace de noms Microsoft.SqlServer.Management.Smo.Agent