다음을 통해 공유


SPOutboundMailService class

Represents a Simple Mail Transfer Protocol (SMTP) service that is used in Microsoft SharePoint Foundation to send outbound mail.

Inheritance hierarchy

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

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

Syntax

'Declaration
<GuidAttribute("2F4307E2-69AC-4213-9C71-F12554DE7BC8")> _
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel := True)> _
Public NotInheritable Class SPOutboundMailService _
    Inherits SPService
'Usage
Dim instance As SPOutboundMailService
[GuidAttribute("2F4307E2-69AC-4213-9C71-F12554DE7BC8")]
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
public sealed class SPOutboundMailService : SPService

Remarks

To return the parent service of an outbound e-mail service instance, use the inherited Service property of the SPOutboundMailServiceInstance class.

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

SPOutboundMailService members

Microsoft.SharePoint.Administration namespace