SPVirtualServerConfig.EmailInsertsEnabled property
NOTE: This API is now obsolete.
已過時。電子郵件插入功能已移除。EmailInsertsEnabled屬性一定會傳回false,並設定屬性無效果。(在Windows SharePoint Services 2.0, EmailInsertsEnabled屬性用於取得或設定 Boolean 值,以指定的虛擬伺服器上的文件庫可接受電子郵件附件,並針對回溯相容性維護。)
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
<ObsoleteAttribute("E-Mail Inserts have been removed from WSS V3.")> _
Public Property EmailInsertsEnabled As Boolean
Get
Set
'用途
Dim instance As SPVirtualServerConfig
Dim value As Boolean
value = instance.EmailInsertsEnabled
instance.EmailInsertsEnabled = value
[ObsoleteAttribute("E-Mail Inserts have been removed from WSS V3.")]
public bool EmailInsertsEnabled { get; set; }
Property value
Type: System.Boolean
true如果文件庫可接受電子郵件附件 ;否則,請false。
備註
設定EmailInsertsEnabled屬性的值需要呼叫SPPropertyBag.Update方法,以對資料庫認可屬性變更。
Examples
下列程式碼範例會啟用指定虛擬伺服器上的文件庫的電子郵件附件。
Dim globalAdmin As New SPGlobalAdmin()
Dim uri As New System.Uri("http://Server_Name")
Dim vServer As SPVirtualServer = globalAdmin.OpenVirtualServer(uri)
Dim vConfig As SPVirtualServerConfig = vServer.Config
vConfig.EmailInsertsEnabled = True
vConfig.Properties.Update()
globalAdmin.Close()
SPGlobalAdmin globalAdmin = new SPGlobalAdmin();
System.Uri uri = new System.Uri("http://Server_Name");
SPVirtualServer vServer = globalAdmin.OpenVirtualServer(uri);
SPVirtualServerConfig vConfig = vServer.Config;
vConfig.EmailInsertsEnabled = true;
vConfig.Properties.Update();
globalAdmin.Close();