Share via


ListInstance Element (List Instance)

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.

Specifies default data with which to provision the given list type.

<ListInstance
  Description = "Text"
  FeatureId = "Text"
  Id = Text
  OnQuickLaunch = "TRUE" | "FALSE"
  QuickLaunchUrl = "Text"
  RootWebOnly = "TRUE" | "FALSE"
  TemplateType = Integer
  Title = "Text"
  Url = "Text"
</ListInstance>

Attributes

Attribute

Description

Description

Optional Text. Contains a description of the list.

FeatureId

Required Text. Specifies the GUID of the Feature. If you do not specify a Feature GUID, Windows SharePoint Services uses the ID of the default Feature, in other words, the one containing the ListInstance element. If the list template for the list instance is contained within a different Feature, you must specify the ID of that Feature through the FeatureId attribute.

Id

Required Text. Specifies a unique identifier for the list instance. The integer must be unique across the Feature definition.

OnQuickLaunch

Optional Boolean. TRUE to display lists created from the list definition on the Quick Launch bar.

QuickLaunchUrl

Optional Text. Specifies the URL of the view page to open for the list through Quick Launch navigation.

RootWebOnly

Optional Boolean. TRUE to specify that the list created from the definition exists only in the root Web site of a site collection.

TemplateType

Required Integer. Returns the integer identifier of the list template to use.

Title

Required Text. Title of the list in the schema.

Url

Required Text. Returns the site-relative URL at which to place the list.

Child Elements

Data

Parent Elements

Elements

Occurrences

Minimum: 0

Maximum: Unbounded

Remarks

The ListInstance Feature element maps to the List element as used in Windows SharePoint Services 2.0 within the Configuration element in Onet.xml.

Example

For an example of how this element is used, see List Instances.

Microsoft.Win32.RegistryKey#4