Share via


SPIncomingEmailService.Enabled property

Gets or sets a Boolean value that specifies whether to enable delivery of incoming e-mail.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Property Enabled As Boolean
    Get
    Set
'Usage
Dim instance As SPIncomingEmailService
Dim value As Boolean

value = instance.Enabled

instance.Enabled = value
public bool Enabled { get; set; }

Property value

Type: System.Boolean
true to enable delivery of incoming e-mail; otherwise, false.

Remarks

Setting the Enabled property adds or deletes the e-mail delivery timer job, as appropriate, when the Update method is called.

See also

Reference

SPIncomingEmailService class

SPIncomingEmailService members

Microsoft.SharePoint.Administration namespace