Partager via


File Element (DeploymentManifest - SPFileVersionCollection)

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

Represents a versioned instance of a Windows SharePoint Services 3.0 file (SPFile) object.

DECLARATION
<xs:element name="File" 
        type="SPFile" 
        minOccurs="1" maxOccurs="unbounded" 
/>

USAGE
<Versions>
        <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 />
        />
</Versions>

Type

SPFile

Attributes

Attribute

Type

Description

Name

xs:string

Optional. Name of the file.

Id

Guid Simple Type (DeploymentManifest)

Optional. Unique identifier of the file.

Url

xs:string

Optional. The Web site-relative URL of the file.

ListItemIntId

xs:int

Optional. Integer identifier specifying the list item relative to position in a document library.

ParentWebId

Guid Simple Type (DeploymentManifest)

Optional. Unique identifier of parent Web site.

ParentWebUrl

xs:string

Optional. URL of the parent Web site.

ParentId

Guid Simple Type (DeploymentManifest)

Optional. Unique identifier of the parent folder for the file.

ListId

Guid Simple Type (DeploymentManifest)

Optional. Unique identifier of the list in which the file exists. ListId values must match values for the Versions attribute.

FileValue

xs:string

Optional. Specifies the location of the file on disk.

CheckinComment

xs:string

Optional. Comments provided on file checkin.

Versions

xs:string

Optional. Represents a collection of file version objects that specify file versions.

Author

xs:string

Optional. The user who created or uploaded the file.

ModifiedBy

xs:string

Optional. The user who last modified the file.

TimeCreated

xs:dateTime

Optional. Date-time value representing the time the file was created or uploaded.

TimeLastModified

xs:dateTime

Optional. Date-time value representing the time the file was last modified.

FailureMessage

xs:string

Optional. Message represented on failure at export or import.

IsGhosted

xs:boolean

Optional. Specifies whether the file exists on the front end (and not in the database), and therefore does not require a roundtrip to the database server.

SetupPath

xs:string

Optional. Path to the front-end file location in cases where the IsGhosted attribute is true.

SetupPathUser

xs:string

Optional. Person who initially created the list in the document library.

SetupPathVersion

xs:byte

Optional. Specifies Windows SharePoint Services version. The value 2 specifies Windows SharePoint Services 3.0; the value 3 specifies Windows SharePoint Services 3.0.

Child Elements

EventReceivers Element (DeploymentManifest - SPFile)

Links Element (DeploymentManifest - SPFile)

Personalizations Element (DeploymentManifest)

Properties Element (DeploymentManifest - SPFile)

Versions Element (DeploymentManifest - SPFile)

WebParts Element (DeploymentManifest)

Parent Elements

Versions Element (DeploymentManifest - SPFile)

See Also

Reference

SPFile

Concepts

DeploymentManifest Schema