View.HtmlSchemaXml property

Gets a value that specifies the XML document that represents the list view.

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

public string HtmlSchemaXml { get; }

Property value

Type: System.String
Returns a String instance representing the XML document that represents the list view.


The current user has insufficient permissions. Error code: -2147024891.

It must not be a null reference (Nothing in Visual Basic). It must be exactly one XML fragment conforming to ViewDefinitions.

The ListMetaDataDefinition type contains various elements used to define the structure of a list.


<xs:complexType name="ListMetaDataDefinition">
      <xs:element name="ContentTypes" type="ContentTypeReferences" minOccurs="0" maxOccurs="1" />
      <xs:element name="Default" type="ListMetaDataDefault" minOccurs="0" maxOccurs="1" />
      <xs:element name="DefaultDescription" type="xs:string" minOccurs="0" maxOccurs="1" />
      <xs:element name="DocumentLibraryTemplate" type="xs:string" minOccurs="0" maxOccurs="1" /> <xs:element name="Fields" type="FieldDefinitions" minOccurs="0" maxOccurs="1" />
      <xs:element name="Forms" type="ListFormSet" minOccurs="0" maxOccurs="1" />
      <xs:element name="Security" type="ListSecurity" minOccurs="0" maxOccurs="1" />
      <xs:element name="Toolbar" type="ToolbarDefinition" minOccurs="0" maxOccurs="1" />
      <xs:element name="Views" type="ViewDefinitions" minOccurs="0" maxOccurs="1" />