Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The SchemaXml property of the SPView class gets the schema that defines the view.
Property Value
A string in Collaborative Application Markup Language (CAML) 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>
Requirements
Platforms: Microsoft Windows Server 2003
Security: Code Access Security