Share via


CoreResultsWebPart.View Property

Gets or sets the default sort view for the search results displayed in the CoreResultsWebPart Web Part.

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

Syntax

'Declaration
<WebBrowsableAttribute(True)> _
<PersonalizableAttribute(PersonalizationScope.Shared)> _
<ResourcesAttribute("SearchResults_CRResultsView", "SearchResults_CR",  _
    "SearchResults_CRResultsView_ToolTip")> _
Public Property View As ResultsView
    Get
    Set
'Usage
Dim instance As CoreResultsWebPart
Dim value As ResultsView

value = instance.View

instance.View = value
[WebBrowsableAttribute(true)]
[PersonalizableAttribute(PersonalizationScope.Shared)]
[ResourcesAttribute("SearchResults_CRResultsView", "SearchResults_CR", 
    "SearchResults_CRResultsView_ToolTip")]
public ResultsView View { get; set; }

Property Value

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

See Also

Reference

CoreResultsWebPart Class

CoreResultsWebPart Members

Microsoft.Office.Server.Search.WebControls Namespace