CamlQuery.ViewXml property

Gets or sets value that specifies the XML schema that defines the list view.

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

Syntax

'Declaration
Public Property ViewXml As String
    Get
    Set
'Usage
Dim instance As CamlQuery
Dim value As String

value = instance.ViewXml

instance.ViewXml = value
public string ViewXml { get; set; }

Property value

Type: System.String
Returns String.

Remarks

It must be a null reference (Nothing in Visual Basic), empty, or an XML fragment that conforms to the ViewDefinition type.

The FieldDefinitions type contains a collection of zero or more fields.

Schema

Xs:complexType name = “FieldDefinitions” 
   Xs:sequence
      Xs:element name = “Field” type = “FieldDefinition” minOccurs = “0” maxOccurs = “unbounded”/
   /xs:sequence
/xs:complexType

See also

Reference

CamlQuery class

CamlQuery members

Microsoft.SharePoint.Client namespace