DSQuery.Select, propriété (Microsoft.SharePoint.Dsp)

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

Espace de noms : Microsoft.SharePoint.Dsp
Assembly : Microsoft.SharePoint.Dsp (dans microsoft.sharepoint.dsp.dll)

[XmlAttributeAttribute(AttributeName="select")] 
public string Select { get; set; }

Valeur de la propriété

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.

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.

Afficher: