Partager via


View.ViewQuery - Propriété

Gets or sets a value that specifies the query that is used by the list view.

Espace de noms :  Microsoft.SharePoint.Client
Assemblys :   Microsoft.SharePoint.Client.Silverlight (dans Microsoft.SharePoint.Client.Silverlight.dll);  Microsoft.SharePoint.Client.Phone (dans Microsoft.SharePoint.Client.Phone.dll)  Microsoft.SharePoint.Client (dans Microsoft.SharePoint.Client.dll)

Syntaxe

'Déclaration
Public Property ViewQuery As String
    Get
    Set
'Utilisation
Dim instance As View
Dim value As String

value = instance.ViewQuery

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

Valeur de propriété

Type : System.String
Returns a String instance representing the query that is used by the list view.

Remarques

It must be une référence Null (Rien dans Visual Basic) or a valid XML fragment that conforms to CamlQueryRoot.

The CamlQueryRoot type is used to specify conditions and preferences for returning list items from a larger set of list items.

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>

Voir aussi

Référence

View classe

View - Membres

Microsoft.SharePoint.Client - Espace de noms