Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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.Office.Server.Search (in Microsoft.Office.Server.Search.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.