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)
Syntax
'Declaration
Public ReadOnly Property HtmlSchemaXml As String
Get
'Usage
Dim instance As View
Dim value As String
value = instance.HtmlSchemaXml
public string HtmlSchemaXml { get; }
Property value
Type: System.String
Returns a String instance representing the XML document that represents the list view.
Exceptions
Exception | Condition |
---|---|
UnauthorizedAccessException | The current user has insufficient permissions. Error code: -2147024891. |
Remarks
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.
Schema
<xs:complexType name="ListMetaDataDefinition">
<xs:all>
<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" />
</xs:all>
</xs:complexType>