Share via


CoreResultsWebPart.FixedQuery Property

Gets or sets a fixed query for the CoreResultsWebPart 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(True)> _
<ResourcesAttribute("SearchResults_CRFixedQuery", "SearchResults_CRFixedQuery",  _
    "SearchResults_CRFixedQuery_ToolTip")> _
Public Property FixedQuery As String
    Get
    Set
'Usage
Dim instance As CoreResultsWebPart
Dim value As String

value = instance.FixedQuery

instance.FixedQuery = value
[PersonalizableAttribute(PersonalizationScope.Shared)]
[WebBrowsableAttribute(true)]
[ResourcesAttribute("SearchResults_CRFixedQuery", "SearchResults_CRFixedQuery", 
    "SearchResults_CRFixedQuery_ToolTip")]
public string FixedQuery { get; set; }

Property Value

Type: System.String
A string specifying the fixed query.

Remarks

Use the Enterprise Search Keyword Syntax Reference to construct the fixed query.

See Also

Reference

CoreResultsWebPart Class

CoreResultsWebPart Members

Microsoft.Office.Server.Search.WebControls Namespace