Compartir a través de


ViewCreationInformation.Query Property

Gets or sets a value that specifies the query for the new list view.

Namespace:  Microsoft.SharePoint.Client
Assemblies:   Microsoft.SharePoint.Client.Silverlight (in Microsoft.SharePoint.Client.Silverlight.dll);  Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)

Syntax

'Declaration
<RemoteAttribute> _
Public Property Query As String
    Get
    Set
'Usage
Dim instance As ViewCreationInformation
Dim value As String

value = instance.Query

instance.Query = value
[RemoteAttribute]
public string Query { get; set; }

Property Value

Type: System.String
Returns a String instance representing the query for the new list view.

Remarks

It must be a null reference (Nothing in Visual Basic) or a valid XML fragment that conforms to CamlQueryRoot

Schema

xs:complexType name="CamlQueryRoot"
   xs:all
      xs:element name="Where" type="LogicalJoinDefinition" minOccurs="0" maxOccurs="1" /
      xs:element name="OrderBy" type="OrderByDefinition" minOccurs="0" maxOccurs="1" /
      xs:element name="GroupBy" type="GroupByDefinition" minOccurs="0" maxOccurs="1" /
   xs:all
xs:complexType

See Also

Reference

ViewCreationInformation Class

ViewCreationInformation Members

Microsoft.SharePoint.Client Namespace