QueryTemplate Property

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

Property Value

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.

Requirements

Platforms: Microsoft Windows Server 2003

Security: Code Access Security

QueryTemplateFromPart Property | QueryTemplateOrderByPart Property | QueryTemplateSelectPart Property | QueryTemplateWherePart Property