PropertyBag Element (Property Bag)
Applies to: SharePoint 2016 | SharePoint Foundation 2013 | SharePoint Online | SharePoint Server 2013
Specifies the properties in the property bag for the list item, file, folder, or website.
Definition
<PropertyBag
HyperlinkBaseUrl = "Text"
ItemIndex = "Text"
ParentType = "PropertyBagParentTypeDefinition"
RootWebOnly = "Text"
Url = "Text">
<Property ... />
</ PropertyBag >
Elements and attributes
The following sections describe attributes, child elements, and parent elements.
Attributes
Attribute |
Description |
---|---|
**HyperlinkBaseUrl** |
Optional **Text**. Specifies an absolute URL to use as the base URL for hyperlinks. |
**ItemIndex** |
Optional **Text**. Specifies the ID of the list item. This attribute is used only when **ParentType** is "ListItem". |
**ParentType** |
Required **PropertyBagParentTypeDefinition** enumeration. Must be one of **File**, **Folder**, **ListItem**, or **Web**. Specifies the kind of object to which the property bag belongs. |
**RootWebOnly** |
Optional **TRUE/FALSE**. Indicates whether the parent object must be the site collection's top-level site when the **ParentType** attribute is "Web". This attribute is not used with any other **ParentType** value. |
**Url** |
Optional **Text**. The site-relative URL of the parent object to which the property bag belongs, except when **ParentType** is "ListItem". In that case, this attribute specifies the site-relative URL of the list, not the list item. |
Child elements
Parent elements
Occurrences
Minimum: 0 Maximum: Unbounded |
Example
For an example of how this element is used, see Property Bag Schema.