Share via


CoreResultsWebPart.ShowSearchResults Property

Gets or sets a value that indicates whether search results are 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
<ResourcesAttribute("SearchResults_CRSearchResults", "", "SearchResults_CRSearchResults_ToolTip")> _
<PersonalizableAttribute(PersonalizationScope.Shared)> _
<WebBrowsableAttribute(True)> _
Public Property ShowSearchResults As Boolean
    Get
    Set
'Usage
Dim instance As CoreResultsWebPart
Dim value As Boolean

value = instance.ShowSearchResults

instance.ShowSearchResults = value
[ResourcesAttribute("SearchResults_CRSearchResults", "", "SearchResults_CRSearchResults_ToolTip")]
[PersonalizableAttribute(PersonalizationScope.Shared)]
[WebBrowsableAttribute(true)]
public bool ShowSearchResults { get; set; }

Property Value

Type: System.Boolean
true if search results are displayed; otherwise, false.

See Also

Reference

CoreResultsWebPart Class

CoreResultsWebPart Members

Microsoft.Office.Server.Search.WebControls Namespace