Partager via


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