Proprietà Settings.MailProfile

Gets or sets the mail profile for the instance of SQL Server.

Spazio dei nomi  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Sintassi

'Dichiarazione
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
Public Property MailProfile As String 
    Get 
    Set
'Utilizzo
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)

Valore proprietà

Tipo: System.String
A String value that specifies the name of the mail profile for the instance of SQL Server.

Osservazioni

The mail profile enables SQL Server Agent to send and receive e-mails.

Esempi

Configurazione di SQL Server in SMO

Vedere anche

Riferimento

Settings Classe

Spazio dei nomi Microsoft.SqlServer.Management.Smo