SPDeploymentSettings.BaseFileName 属性

获取或设置创建内容迁移包时使用该基文件名。

命名空间:  Microsoft.SharePoint.Deployment
程序集:  Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)

语法

声明
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; }

属性值

类型:System.String
返回一个字符串,表示该基文件名。

备注

内容迁移包可以包含一个或多个 CAB 文件,这些文件称为基于baseFileName的参数。值取自上SPDeploymentSettings的类构造函数 (SPDeploymentSettings) 的baseFileName参数。

当有多个.cmp 文件时,按数字顺序追加文件名称 (baseFileName 值)。例如,其中的baseFileName参数是"MyWeb",并在导出操作将产生多个.cmp 文件,迁移包名为"MyWeb1.cmp"、"MyWeb2.cmp",等等。

另请参阅

引用

SPDeploymentSettings 类

SPDeploymentSettings 成员

Microsoft.SharePoint.Deployment 命名空间