Share via


DSQuery.select property

Gets or sets an XPath expression that specifies the data item that the client is querying against.

Namespace:  WebSvcDspSts
Assembly:  STSSOAP (in STSSOAP.dll)

Syntax

'Declaration
Public Property select As String
    Get
    Set
'Usage
Dim instance As DSQuery
Dim value As String

value = instance.select

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

Property value

Type: System.String
A string that contains the XPath expression that specifies the data item. This value may be a non-row-returning item, such as a Microsoft SQL Server database or a Microsoft Windows SharePoint Services site, in which the query is a metadata query; or a row-returning item such as a SQL Server table or a Windows SharePoint Services view, in which case the query is a data query.

Remarks

The Select property specifies XPath expressions such as the following:

  • /   Query against the root.

  • /authentication   Query for the supported authentication modes. Used when the document type is System.

  • /dataRoot   Query for the data root format of the adapter. Used when the document type is System.

  • /querySupport   Query for the supported query types. Used when the document type is System.

  • /versions   Query for the version support. Used when the document type is System.

  • /database[@id='Northwind']/table[@id='CustOrderHist']   Query the stored-procedure "CustOrderHist" in the Northwind database. Used when the document type is Content.

  • /database[@id='Northwind']   Query for a list of table objects (tables, views, stored procedures, and so on) within the Northwind database. Used when the document type is Content.

  • /list[@name='Announcements']   Query against a SharePoint list. Used when the document type is Content.

See also

Reference

DSQuery class

DSQuery members

WebSvcDspSts namespace