Udostępnij za pośrednictwem


Właściwość Alert.NotificationMessage

Pobiera lub ustawia dołączane do powiadomienie wysłanych w odpowiedzi na alert podniesionych tekstu wprowadzonego przez użytkownika.

Przestrzeń nazw:  Microsoft.SqlServer.Management.Smo.Agent
Zestaw:  Microsoft.SqlServer.Smo (w Microsoft.SqlServer.Smo.dll)

Składnia

'Deklaracja
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
Public Property NotificationMessage As String
    Get
    Set
'Użycie
Dim instance As Alert
Dim value As String

value = instance.NotificationMessage

instance.NotificationMessage = value
[SfcPropertyAttribute(SfcPropertyFlags.Standalone)]
public string NotificationMessage { get; set; }
[SfcPropertyAttribute(SfcPropertyFlags::Standalone)]
public:
property String^ NotificationMessage {
    String^ get ();
    void set (String^ value);
}
[<SfcPropertyAttribute(SfcPropertyFlags.Standalone)>]
member NotificationMessage : string with get, set
function get NotificationMessage () : String
function set NotificationMessage (value : String)

Wartość właściwości

Typ: System.String
A String wartość określająca tekstu wprowadzonego przez użytkownika, dołączonym do żadnych powiadomienie.

Uwagi

When a Microsoft SQL Server alert is raised, SQL Server Agent builds a message and sends notifications as a response.powiadomienie Wiadomości jest zbudowany z części domyślne i parametry kontrolowane przez użytkownika.Dodawanie tekstu do określonego użytkownika do alert, zestaw NotificationMessage Właściwość Alert obiektu.