Attachment element (DeploymentManifest)

Applies to: SharePoint 2016 | SharePoint Foundation 2013 | SharePoint Online | SharePoint Server 2013

Represents an instance of a Windows SharePoint Services 3.0 attachment object (SPAttachment).

Definition

DECLARATION
<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

Elements and attributes

The following sections describe attributes, child elements, and parent elements.

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

Parent elements

Remarks

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

See also