다음을 통해 공유


QueryResultBase.QueryTemplateOrderByPart Property

The QueryTemplateOrderByPart property of the QueryResultBase class gets or sets the ORDER BY clause of 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
Public Property QueryTemplateOrderByPart As String
    Get
    Set
'Usage
Dim instance As QueryResultBase
Dim value As String

value = instance.QueryTemplateOrderByPart

instance.QueryTemplateOrderByPart = value
public string QueryTemplateOrderByPart { get; set; }

Property Value

Type: System.String
String that contains the ORDER BY clause of the query template used by Web Parts that derive from this class.

Remarks

Override this property to get or set default values or placeholders for the ORDER BY clause. For example, the SearchResults class sets this property to " ORDER BY %__sort_by__%," where the "%__sort_by__%" sub-string is replaced by query values at runtime.

See Also

Reference

QueryResultBase Class

QueryResultBase Members

Microsoft.SharePoint.Portal.WebControls Namespace