共用方式為


SPOutboundMailServiceInstance constructor (String, SPServer)

初始化根據指定的名稱和伺服器的SPOutboundMailServiceInstance類別的新執行個體。

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

Syntax

'宣告
Public Sub New ( _
    name As String, _
    server As SPServer _
)
'用途
Dim name As String
Dim server As SPServer

Dim instance As New SPOutboundMailServiceInstance(name, server)
public SPOutboundMailServiceInstance(
    string name,
    SPServer server
)

參數

備註

如需如何設定的 SMTP 伺服器的資訊,請參閱 < https://technet.microsoft.com/en-us/library/cc288949.aspx

請參閱

參照

SPOutboundMailServiceInstance class

SPOutboundMailServiceInstance members

SPOutboundMailServiceInstance overload

Microsoft.SharePoint.Administration namespace