Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

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

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" />
© 2015 Microsoft