Share via


Attachment Element (DeploymentManifest)

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 an instance of a Windows SharePoint Services 3.0 attachment object (SPAttachment).

DELCARATION
<xs:element name="Attachment" 
      type="SPAttachment" 
      minOccurs="0" maxOccurs="unbounded" 
/>

USAGE
<ListItem>
        <Attachments>
                <Attachment>
                        Name="xs:string"
                        DirName="xs:string"
                        Url="xs:string"
                        Id="Guid"
                        ParentWebId="Guid"
                        FileValue="xs:string"
                        MetaInfo="xs:string"
                        Author="xs:string"
                        ModifiedBy="xs:string"
                        TimeCreated="xs:dateTime"
                        TimeLastModified="xs:dateTime"
                        FailureMessage="xs:string"
                                <Properties />
                </Attachment>
        </Attachments>
</ListItem>

Type

SPAttachement

Attributes

Attribute

Type

Description

Name

xs:string

Required. Attachment file name.

DirName

xs:string

Optional. Url to the directory in which the attachment file is located.

Url

xs:string

Optional. Web-relative URL to the attachment file (DirName plus file name).

Id

Guid

Optional. Unique identifier of the attachment file.

ParentWebId

Guid

Optional. Unique identifier of the parent Web.

FileValue

xs:string

Required. Identifier of the attachment file as maintained by the export package.

MetaInfo

xs:string

Optional. Property bag values for the attachment file.

Author

xs:string

Optional. User who created or uploaded the attachment file.

ModifiedBy

xs:string

Optional. Any user who modified the attachment file.

TimeCreated

xs:dateTime

Optional. Time the attachment file was created or uploaded.

TimeLastModified

xs:dateTime

Optional. Time the file was last modified.

FailureMessage

xs:string

Optional. Export failure message.

Child Elements

Properties Element (DeploymentManifest - SPAttachment)

Parent Elements

Attachments Element (DeploymentManifest)

Remarks

Attachments are available for any list items that are not part of a document library.

See Also

Reference

SPAttachmentCollection

Concepts

DeploymentManifest Schema