共用方式為


SPDeploymentSettings.FileCompression property

取得或設定 Boolean 值,以指定的內容移轉套件是否已壓縮使用 CAB 壓縮通訊協定。

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

Syntax

'宣告
Public Property FileCompression As Boolean
    Get
    Set
'用途
Dim instance As SPDeploymentSettings
Dim value As Boolean

value = instance.FileCompression

instance.FileCompression = value
public bool FileCompression { get; set; }

Property value

Type: System.Boolean
若要壓縮內容移轉封裝 (英文) 使用 CAB ; true否則,請false。預設值為true。

備註

FileCompression值必須是SPImportSettings和SPExportSettings相同。

請參閱

參照

SPDeploymentSettings class

SPDeploymentSettings members

Microsoft.SharePoint.Deployment namespace