Partager via


Propriété MailProfile

Obtient ou définit le profil de messagerie pour l'instance de SQL Server.

Espace de noms :  Microsoft.SqlServer.Management.Smo
Assembly :  Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)

Syntaxe

'Déclaration
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
Public Property MailProfile As String
    Get
    Set
'Utilisation
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)

Valeur de propriété

Type : System. . :: . .String
Valeur String qui spécifie le nom du profil de messagerie de l'instance de SQL Server.

Notes

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