Partager via


QueryResultBase.QueryTemplate, propriété (Microsoft.SharePoint.Portal.WebControls)

The QueryTemplate property of the QueryResultBase class gets the query template used by Web Parts that derive from this class.

Espace de noms : Microsoft.SharePoint.Portal.WebControls
Assembly : Microsoft.SharePoint.Portal (dans microsoft.sharepoint.portal.dll)

Syntaxe

'Déclaration
Protected ReadOnly Property QueryTemplate As String
'Utilisation
Dim value As String

value = Me.QueryTemplate
protected string QueryTemplate { get; }

Valeur de la propriété

A string that contains the query template used by Web Parts that derive from this class.

Remarques

The QueryTemplate property is read-only. QueryTemplate is a template for the query executed by Web Parts that derive from this class. The query template includes a SELECT clause, a FROM clause, a WHERE clause, and an ORDER BY clause. Derived classes can change the QueryTemplate and parse it at run time by using the QueryTemplateFromPart, QueryTemplateOrderByPart, QueryTemplateSelectPart, and QueryTemplateWherePart properties.

Voir aussi

Référence

QueryResultBase, classe
Membres QueryResultBase
Microsoft.SharePoint.Portal.WebControls, espace de noms