PropertyBag Element (Property Bag)

Last modified: March 09, 2015

Applies to: SharePoint Foundation 2010

Specifies the properties in the property bag for the list item, file, folder, or website.

  HyperlinkBaseUrl = "Text"
  ItemIndex = "Text"
  ParentType = "PropertyBagParentTypeDefinition"
  RootWebOnly = "Text"
  Url = "Text">

  <Property  ... />

</ PropertyBag >




Optional Text. Specifies an absolute URL to use as the base URL for hyperlinks.


Optional Text. Specifies the ID of the list item. This attribute is used only when ParentType is "ListItem".


Required PropertyBagParentTypeDefinition enumeration. Must be one of File, Folder, ListItem, or Web. Specifies the kind of object to which the property bag belongs.


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.


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.

Minimum: 0

Maximum: Unbounded

For an example of how this element is used, see Property Bag Schema.