Share via


AdvancedSearchBox.ShowPhraseQueryTextBox Property

Gets or sets a Boolean value that indicates whether the AdvancedSearchBox Web Part displays the exact phrase search box.

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_ShowPhraseQueryLabel_Text",  _
    "AdvancedSearchBox_ToolPart_TextQuerySection", "AdvancedSearchBox_ToolPart_ShowPhraseQueryLabel_Text")> _
<BrowsableAttribute(True)> _
Public Property ShowPhraseQueryTextBox As Boolean
    Get
    Set
'Usage
Dim instance As AdvancedSearchBox
Dim value As Boolean

value = instance.ShowPhraseQueryTextBox

instance.ShowPhraseQueryTextBox = value
[WebPartStorageAttribute(Storage.Shared)]
[ResourcesAttribute("AdvancedSearchBox_ToolPart_ShowPhraseQueryLabel_Text", 
    "AdvancedSearchBox_ToolPart_TextQuerySection", "AdvancedSearchBox_ToolPart_ShowPhraseQueryLabel_Text")]
[BrowsableAttribute(true)]
public bool ShowPhraseQueryTextBox { get; set; }

Property Value

Type: System.Boolean
true if the exact phrase search box is displayed; otherwise, false.

See Also

Reference

AdvancedSearchBox Class

AdvancedSearchBox Members

Microsoft.Office.Server.Search.WebControls Namespace