File 元素 (DeploymentManifest - SPGenericObject)

上次修改时间: 2015年3月9日

适用范围: SharePoint Foundation 2010

本文内容
类型
属性
子元素
父元素

表示 Windows SharePoint Services 3.0 文件 (SPFile) 对象的实例。

DECLARATION
<xs:element name="File" type="SPFile" />

USAGE
<SPObject>
        <File
                Name="xs:string"
                Id="Guid"
                Url="xs:string"
                ListItemIntId="xs:int"
                ParentWebId="Guid"
                ParentWebUrl="xs:string"
                ParentId="Guid"
                ListId="Guid"
                FileValue="xs:string"
                CheckinComment="xs:string"
                Version="xs:string"
                Author="xs:string"
                ModifiedBy="xs:string"
                TimeCreated="xs:dateTime"
                TimeLastModified="xs:dateTime"
                FailureMessage="xs:string"
                IsGhosted="xs:boolean"
                SetupPath="Guid"
                SetupPathUser="xs:string"
                SetupPathVersion="xs:byte"
            <Properties />
                        <Versions />
                        <WebParts />
                        <Personalizations />
                        <Links />
                        <EventReceivers />
        />
</SPObject>

类型

SPFile

属性

属性

类型

说明

Name

xs:string

可选。文件的名称。

Id

GUID 简单类型 (DeploymentManifest)

文件的唯一标识符。

在导出时可选;在导入时必选。

Url

xs:string

文件相对于网站的 URL。

在导出时可选;在导入时必选。

ListItemIntId

xs:int

可选。整数标识符,用于指定列表项在文档库中的相对位置。

ParentWebId

GUID 简单类型 (DeploymentManifest)

父网站的唯一标识符。

在导出时可选;在导入时必选。

ParentWebUrl

xs:string

可选。指向父网站的 URL。

ParentId

GUID 简单类型 (DeploymentManifest)

文件的父文件夹的唯一标识符。

在导出时可选;在导入时必选。

ListId

GUID 简单类型 (DeploymentManifest)

可选。文件所在的列表的唯一标识符。ListId 值必须与 Versions 属性的值匹配。

FileValue

xs:string

指定文件在磁盘上的位置。

在导出时可选;在导入自定义(取消幻像)文件和文档库项时必选。

CheckinComment

xs:string

可选。在文件签入时提供的注释。

Versions

xs:string

可选。表示指定文件版本的文件版本对象的集合。

Author

xs:string

可选。创建或上载文件的用户。

ModifiedBy

xs:string

可选。上次修改文件的用户。

TimeCreated

xs:dateTime

可选。表示文件创建或上载时间的日期时间值。

TimeLastModified

xs:dateTime

可选。表示文件上次修改时间的日期时间值。

FailureMessage

xs:string

可选。在导出或导入失败时显示的消息。

IsGhosted

xs:boolean

可选。指定文件是否位于前端(而不在数据库中),如果位于前端,则无需往返于数据库服务器。

SetupPath

xs:string

当 IsGhosted 属性为 true 时,表示指向前端文件位置的路径。

在导出时可选;如果 IsGhosted 属性为 true,则在导入时必选。

SetupPathUser

xs:string

可选。最初在文档库中创建列表的人员。

SetupPathVersion

xs:byte

可选。指定 Microsoft SharePoint Foundation 版本。值 2 指定 Windows SharePoint Services 2.0;值 3 指定 Windows SharePoint Services 3.0。

子元素

EventReceivers 元素 (DeploymentManifest - SPFile)

Links 元素 (DeploymentManifest - SPFile)

Personalizations 元素 (DeploymentManifest)

Properties 元素 (DeploymentManifest - SPFile)

Versions 元素 (DeploymentManifest - SPFile)

WebParts 元素 (DeploymentManifest)

父元素

SPObject 元素 (DeploymentManifest)

请参阅

引用

SPFile

概念

DeploymentManifest 架构