SchemaXml Property

The SchemaXml property of the SPListTemplate class gets the schema that describes the list definition.

Property Value

A string in Collaborative Application Markup Language (CAML) that contains the schema.

Remarks

The SchemaXml property property returns a CAML fragment like the following:

<ListTemplate Name="gridlist" DisplayName="Custom List in Datasheet View"
   Type="120" BaseType="0" OnQuickLaunch="TRUE" SecurityBits="11"
   Description="Create a custom list when you want to specify your own columns.
   The list opens in a spreadsheet-like environment for convenient data entry, editing,
   and formatting. It requires a Windows SharePoint Services-compatible list datasheet
   control and ActiveX control support." Image="/_layouts/images/itdatash.gif"/>

This property does not apply to list templates.

Requirements

Platforms: Microsoft Windows Server 2003

Security: Code Access Security