ISurfaceAreaFacet.DatabaseMailEnabled Property

Gets or sets a value that indicates whether the database mail is enabled.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Syntax

'Declaration
<DisplayNameKeyAttribute("DatabaseMailEnabledName")> _
<DisplayDescriptionKeyAttribute("DatabaseMailEnabledDesc")> _
Property DatabaseMailEnabled As Boolean 
    Get 
    Set
'Usage
Dim instance As ISurfaceAreaFacet 
Dim value As Boolean 

value = instance.DatabaseMailEnabled

instance.DatabaseMailEnabled = value
[DisplayNameKeyAttribute("DatabaseMailEnabledName")]
[DisplayDescriptionKeyAttribute("DatabaseMailEnabledDesc")]
bool DatabaseMailEnabled { get; set; }
[DisplayNameKeyAttribute(L"DatabaseMailEnabledName")]
[DisplayDescriptionKeyAttribute(L"DatabaseMailEnabledDesc")]
property bool DatabaseMailEnabled {
    bool get ();
    void set (bool value);
}
[<DisplayNameKeyAttribute("DatabaseMailEnabledName")>]
[<DisplayDescriptionKeyAttribute("DatabaseMailEnabledDesc")>]
abstract DatabaseMailEnabled : bool with get, set
function get DatabaseMailEnabled () : boolean 
function set DatabaseMailEnabled (value : boolean)

Property Value

Type: System.Boolean
True if the database mail is enabled; otherwise, false.

See Also

Reference

ISurfaceAreaFacet Interface

Microsoft.SqlServer.Management.Smo Namespace