Compartir a través de


Settings.MailProfile Propiedad

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

Espacio de nombres:  Microsoft.SqlServer.Management.Smo
Ensamblado:  Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)

Sintaxis

'Declaración
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
Public Property MailProfile As String 
    Get 
    Set
'Uso
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)

Valor de la propiedad

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

Comentarios

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

Ejemplos

Configurar SQL Server en SMO

Vea también

Referencia

Settings Clase

Espacio de nombres Microsoft.SqlServer.Management.Smo