View.ViewQuery 属性

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

命名空间:  Microsoft.SharePoint.Client
程序集:   Microsoft.SharePoint.Client.Silverlight(位于 Microsoft.SharePoint.Client.Silverlight.dll 中);  Microsoft.SharePoint.Client.Phone(位于 Microsoft.SharePoint.Client.Phone.dll 中)  Microsoft.SharePoint.Client(位于 Microsoft.SharePoint.Client.dll 中)

语法

声明
Public Property ViewQuery As String
    Get
    Set
用法
Dim instance As View
Dim value As String

value = instance.ViewQuery

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

属性值

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

备注

It must be 空引用(无 在 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>

另请参阅

引用

View 类

View 成员

Microsoft.SharePoint.Client 命名空间