Share via


QueryResultBase.QueryTemplate Property

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

Namespace:  Microsoft.SharePoint.Portal.WebControls
Assembly:  Microsoft.SharePoint.Portal (in Microsoft.SharePoint.Portal.dll)

Syntax

'Declaration
Protected ReadOnly Property QueryTemplate As String
    Get
'Usage
Dim value As String

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

Property Value

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

Remarks

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.

See Also

Reference

QueryResultBase Class

QueryResultBase Members

Microsoft.SharePoint.Portal.WebControls Namespace