DSQuery.Select Property

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

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

Syntax

Public Property Select As String
    Get
    Set

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

Microsoft.SharePoint.Dsp Namespace