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 Syntax Reference to construct the fixed query.

See Also

Reference

SearchResultsBaseWebPart Class

SearchResultsBaseWebPart Members

Microsoft.Office.Server.Search.WebControls Namespace