SPView.SchemaXml Property
Gets the schema that defines the view.
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 SPView
Dim value As String
value = instance.SchemaXml
public string SchemaXml { get; }
Property Value
Type: System.String
A Collaborative Application Markup Language (CAML) string that contains the view schema.
Remarks
The SchemaXml property returns a CAML string like the following:
<View Name="{7591FC7D-8304-42C7-9456-09F4241AC6F8}" Type="HTML"
DisplayName="TestView1" Url="Lists/List_Name/File_Name.aspx"
BaseViewID="1" >
<Query>
<GroupBy Collapse="FALSE">
<FieldRef Name="Title" />
</GroupBy>
</Query>
<ViewFields>
<FieldRef Name="Attachments" />
<FieldRef Name="LinkTitle" />
<FieldRef Name="_x004e_um1" />
<FieldRef Name="_x006e_um2" />
<FieldRef Name="_x006e_um3" />
</ViewFields>
<RowLimit Paged="TRUE">100</RowLimit>
<Aggregations Value="On">
<FieldRef Name="_x006e_um2" Type="SUM" />
<FieldRef Name="_x004e_um1" Type="AVG" />
</Aggregations>
</View>