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
)
參數
name
Type: System.String字串,包含新服務的名稱。
server
Type: Microsoft.SharePoint.Administration.SPServerSPServer物件,代表包含從Microsoft SharePoint Foundation轉送電子郵件設定 SMTP 郵件伺服器的伺服器。
備註
如需如何設定的 SMTP 伺服器的資訊,請參閱 < https://technet.microsoft.com/en-us/library/cc288949.aspx。
請參閱
參照
SPOutboundMailServiceInstance class
SPOutboundMailServiceInstance members