Share via


CoreResultsWebPart.QueryNumber Property

Gets or sets the query ID for the CoreResultsWebPart Web Part's query.

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

Syntax

'Declaration
<WebBrowsableAttribute(True)> _
<PersonalizableAttribute(PersonalizationScope.Shared)> _
<ResourcesAttribute("SearchResults_QueryId", "SearchResults_CRQueryOptions",  _
    "SearchResults_QueryId_ToolTip")> _
Public Property QueryNumber As QueryId
    Get
    Set
'Usage
Dim instance As CoreResultsWebPart
Dim value As QueryId

value = instance.QueryNumber

instance.QueryNumber = value
[WebBrowsableAttribute(true)]
[PersonalizableAttribute(PersonalizationScope.Shared)]
[ResourcesAttribute("SearchResults_QueryId", "SearchResults_CRQueryOptions", 
    "SearchResults_QueryId_ToolTip")]
public QueryId QueryNumber { get; set; }

Property Value

Type: Microsoft.Office.Server.Search.WebControls.QueryId
A value from the QueryId enumeration identifying the query.

See Also

Reference

CoreResultsWebPart Class

CoreResultsWebPart Members

Microsoft.Office.Server.Search.WebControls Namespace