Udostępnij za pośrednictwem


Właściwość Settings.MailProfile

Pobiera lub ustawia profilu poczty dla wystąpienie SQL Server.

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

Składnia

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

value = instance.MailProfile

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

Wartość właściwości

Typ: System.String
A String wartość, która określa nazwę profilu poczty dla wystąpienie SQL Server.

Uwagi

Włącza profilu poczty SQL Server agenta do wysyłania i odbierania wiadomości e-mail.