Partilhar via


SPListTemplate.SchemaXml Property

Gets the schema that describes the list definition.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

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