共用方式為


SPDeploymentSettings.BaseFileName property

取得或設定在建立內容移轉套件時使用的基底檔案名稱。

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

Syntax

'宣告
Public Property BaseFileName As String
    Get
    Set
'用途
Dim instance As SPDeploymentSettings
Dim value As String

value = instance.BaseFileName

instance.BaseFileName = value
public string BaseFileName { get; set; }

Property value

Type: System.String
會傳回 string,代表基底檔案名稱。

備註

內容移轉套件可包含一或多個 CAB 檔,其名為根據baseFileName參數。此值是取自SPDeploymentSettings類別建構函式 (SPDeploymentSettings) 上的baseFileName參數。

當多個.cmp 檔案時,會星期幾附加的檔案名稱 (baseFileName 值)。例如,其中baseFileName參數是"MyWeb",其中匯出作業會產生多個.cmp 檔案,移轉套件名為"MyWeb1.cmp"、"MyWeb2.cmp"等等。

請參閱

參照

SPDeploymentSettings class

SPDeploymentSettings members

Microsoft.SharePoint.Deployment namespace