다음을 통해 공유


ContentTypeBinding Element (ContentTypeBinding)

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 the content type to provision on a list defined in the onet.xml schema.

<ContentTypeBinding
    ContentTypeId="Text"
    ListUrl="Text" 
/>

Attributes

Attribute

Description

ContentTypeId

Required Text. A string that represents the content type ID of the site content type to bind to the specified list.

ListUrl

Required Text. A string that represents the server-relative path to the list to which to bind the content type.

Child Elements

None

Parent Elements

Elements Element (ContentTypeBinding)

Remarks

Lists defined in the onet.xml schema cannot be modified directly.

Example

Following is an example of the ContentTypeBinding element specifying the content type to bind to the specified list.

<?xml version="1.0" encoding="utf-8" ?> 
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
  <ContentTypeBinding
    ContentTypeId="0x010100C5A8DB52D9D0A14D9B2FDCC96666E9F2" 
    ListUrl="_catalogs/masterpage"
  />
</Elements>

See Also

Concepts

Content Type Binding Schema