SPGlobalAdmin.OutboundSmtpServer property
NOTE: This API is now obsolete.
使用SPAdministrationWebApplication類別之UpdateMailSettings方法來更新預設郵件設定而。(在Windows SharePoint Services 2.0OutboundSmtpServer屬性 got SharePoint Foundation部署中的電子郵件訊息所使用的 SMTP 伺服器的名稱以及維護回溯相容性。)
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
<ObsoleteAttribute("Default mail settings are now updated through SPAdministrationWebApplication.Local.UpdateMailSettings().", _
False)> _
Public ReadOnly Property OutboundSmtpServer As String
Get
'用途
Dim instance As SPGlobalAdmin
Dim value As String
value = instance.OutboundSmtpServer
[ObsoleteAttribute("Default mail settings are now updated through SPAdministrationWebApplication.Local.UpdateMailSettings().",
false)]
public string OutboundSmtpServer { get; }
Property value
Type: System.String
包含的 SMTP 伺服器名稱的字串。