AdvancedSearchBox.ShowScopes Property
Gets or sets a Boolean value that indicates whether the AdvancedSearchBox Web Part displays the scopes picker.
Namespace: Microsoft.Office.Server.Search.WebControls
Assembly: Microsoft.Office.Server.Search (in Microsoft.Office.Server.Search.dll)
Syntax
'Declaration
<WebPartStorageAttribute(Storage.Shared)> _
<ResourcesAttribute("AdvancedSearchBox_ToolPart_ShowScopesLabel_Text", _
"AdvancedSearchBox_ToolPart_ScopeSection", "AdvancedSearchBox_ToolPart_ShowScopesLabel_Text")> _
<BrowsableAttribute(True)> _
Public Property ShowScopes As Boolean
Get
Set
'Usage
Dim instance As AdvancedSearchBox
Dim value As Boolean
value = instance.ShowScopes
instance.ShowScopes = value
[WebPartStorageAttribute(Storage.Shared)]
[ResourcesAttribute("AdvancedSearchBox_ToolPart_ShowScopesLabel_Text",
"AdvancedSearchBox_ToolPart_ScopeSection", "AdvancedSearchBox_ToolPart_ShowScopesLabel_Text")]
[BrowsableAttribute(true)]
public bool ShowScopes { get; set; }
Property Value
Type: System.Boolean
true if the scopes picker is displayed; otherwise, false.