ContentBySearchWebPart.ShouldHideControlWhenEmpty property
Specifies whether the control should be displayed if there are no results available.
Namespace: Microsoft.Office.Server.Search.WebControls
Assembly: Microsoft.Office.Server.Search (in Microsoft.Office.Server.Search.dll)
Syntax
'Declaration
<WebBrowsableAttribute(True)> _
<PersonalizableAttribute(PersonalizationScope.Shared)> _
Public Property ShouldHideControlWhenEmpty As Boolean
Get
Set
'Usage
Dim instance As ContentBySearchWebPart
Dim value As Boolean
value = instance.ShouldHideControlWhenEmpty
instance.ShouldHideControlWhenEmpty = value
[WebBrowsableAttribute(true)]
[PersonalizableAttribute(PersonalizationScope.Shared)]
public bool ShouldHideControlWhenEmpty { get; set; }
Property value
Type: System.Boolean