SPListTemplate.SchemaXml property

Gets the schema that describes the list definition.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public ReadOnly Property SchemaXml As String
    Get
'Usage
Dim instance As SPListTemplate
Dim value As String

value = instance.SchemaXml
public string SchemaXml { get; }

Property value

Type: System.String
A string in Collaborative Application Markup Language that contains the schema.

Remarks

The SchemaXml property returns a CAML fragment such as 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.

See also

Reference

SPListTemplate class

SPListTemplate members

Microsoft.SharePoint namespace