SPView.SchemaXml property

Gets the schema that defines the view.

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

public string SchemaXml { get; }

Property value

Type: System.String
A Collaborative Application Markup Language (CAML) string that contains the view schema.

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" >
      <GroupBy Collapse="FALSE">
         <FieldRef Name="Title" />
      <FieldRef Name="Attachments" />
      <FieldRef Name="LinkTitle" />
      <FieldRef Name="_x004e_um1" />
      <FieldRef Name="_x006e_um2" />
      <FieldRef Name="_x006e_um3" />
   <RowLimit Paged="TRUE">100</RowLimit>
   <Aggregations Value="On">
      <FieldRef Name="_x006e_um2" Type="SUM" />
      <FieldRef Name="_x004e_um1" Type="AVG" />