SPIncomingEmailService class

Represents the service that is used in Microsoft SharePoint Foundation for incoming e-mail timer jobs.

Inheritance hierarchy

System.Object
  Microsoft.SharePoint.Administration.SPAutoSerializingObject
    Microsoft.SharePoint.Administration.SPPersistedObject
      Microsoft.SharePoint.Administration.SPPersistedUpgradableObject
        Microsoft.SharePoint.Administration.SPService
          Microsoft.SharePoint.Administration.SPIncomingEmailService

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

Syntax

'Declaration
<GuidAttribute("1F503A44-EA73-498E-B002-F6037E004D84")> _
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel := True)> _
Public NotInheritable Class SPIncomingEmailService _
    Inherits SPService
'Usage
Dim instance As SPIncomingEmailService
[GuidAttribute("1F503A44-EA73-498E-B002-F6037E004D84")]
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
public sealed class SPIncomingEmailService : SPService

Remarks

An incoming e-mail timer job only runs on front-end Web servers on which the service is active. The SPIncomingEmailService class stores the farm-wide settings for incoming e-mail.

To return the parent service of an incoming e-mail service instance, use the inherited Service property of the SPIncomingEmailServiceInstance class. You can also use the GetChild method of the SPPersistedObject class to return the incoming e-mail service, for example: SPFarm.Local.GetChild<SPIncomingEmailService>().

Thread safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See also

Reference

SPIncomingEmailService members

Microsoft.SharePoint.Administration namespace