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

value = instance.ShowSearchResults

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