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
<PersonalizableAttribute(PersonalizationScope.Shared)> _
<WebBrowsableAttribute(True)> _
<ResourcesAttribute("SearchResults_CRSearchResults", "", "SearchResults_CRSearchResults_ToolTip")> _
Public Property ShowSearchResults As Boolean
    Get
    Set
'Usage
Dim instance As CoreResultsWebPart
Dim value As Boolean

value = instance.ShowSearchResults

instance.ShowSearchResults = value
[PersonalizableAttribute(PersonalizationScope.Shared)]
[WebBrowsableAttribute(true)]
[ResourcesAttribute("SearchResults_CRSearchResults", "", "SearchResults_CRSearchResults_ToolTip")]
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