CoreResultsWebPart.DefaultSort property

Gets or sets how the search results should be sorted.

Namespace:  Microsoft.Office.Server.Search.WebControls
Assembly:  Microsoft.Office.Server.Search (in Microsoft.Office.Server.Search.dll)

Syntax

'Declaration
<WebBrowsableAttribute(False)> _
<PersonalizableAttribute(PersonalizationScope.Shared)> _
Public Property DefaultSort As ResultsView
    Get
    Set
'Usage
Dim instance As CoreResultsWebPart
Dim value As ResultsView

value = instance.DefaultSort

instance.DefaultSort = value
[WebBrowsableAttribute(false)]
[PersonalizableAttribute(PersonalizationScope.Shared)]
public ResultsView DefaultSort { get; set; }

Property value

Type: Microsoft.Office.Server.Search.WebControls.ResultsView
A value from the ResultsView enumeration.

See also

Reference

CoreResultsWebPart class

CoreResultsWebPart members

Microsoft.Office.Server.Search.WebControls namespace