SearchBoxEx.AppendToQuery Property

Gets or sets a Boolean value indicating whether additional query terms are appended to the search query entered by the user into the search box Web Part.

Namespace:  Microsoft.SharePoint.Portal.WebControls
Assembly:  Microsoft.SharePoint.Portal (in Microsoft.SharePoint.Portal.dll)

Syntax

'Declaration
<WebPartStorageAttribute(Storage.Shared)> _
<ResourcesAttribute("SearchBox_AppAdditionalTermsToQuery", "SearchBox_QueryTextBox",  _
    "SearchBox_AppAdditionalTermsToQuery_ToolTip")> _
Public Property AppendToQuery As Boolean
    Get
    Set
'Usage
Dim instance As SearchBoxEx
Dim value As Boolean

value = instance.AppendToQuery

instance.AppendToQuery = value
[WebPartStorageAttribute(Storage.Shared)]
[ResourcesAttribute("SearchBox_AppAdditionalTermsToQuery", "SearchBox_QueryTextBox", 
    "SearchBox_AppAdditionalTermsToQuery_ToolTip")]
public bool AppendToQuery { get; set; }

Property Value

Type: System.Boolean
true if additional query terms are appended to the user's search query; otherwise, false.

See Also

Reference

SearchBoxEx Class

SearchBoxEx Members

Microsoft.SharePoint.Portal.WebControls Namespace