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)
Available in Sandboxed Solutions: No
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.