SearchResultsBaseWebPart.FixedQuery property

Gets or sets a fixed query for the Web Part.

Namespace:  Microsoft.Office.Server.Search.WebControls
Assembly:  Microsoft.Office.Server.Search (in Microsoft.Office.Server.Search.dll)

Syntax

'Declaration
<PersonalizableAttribute(PersonalizationScope.Shared)> _
<WebBrowsableAttribute(False)> _
Public Property FixedQuery As String
    Get
    Set
'Usage
Dim instance As SearchResultsBaseWebPart
Dim value As String

value = instance.FixedQuery

instance.FixedQuery = value
[PersonalizableAttribute(PersonalizationScope.Shared)]
[WebBrowsableAttribute(false)]
public string FixedQuery { get; set; }

Property value

Type: System.String
The fixed query.

Remarks

Use the Keyword Query Language (KQL) syntax reference to construct the fixed query.

See also

Reference

SearchResultsBaseWebPart class

SearchResultsBaseWebPart members

Microsoft.Office.Server.Search.WebControls namespace