Share via


CoreResultsWebPart.Scope Property

Gets or sets the name of the scope for the search results displayed in the CoreResultsWebPart Web Part.

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

Syntax

'Declaration
<ResourcesAttribute("SearchResults_CRScope", "", "SearchResults_CRScope_ToolTip")> _
<PersonalizableAttribute(PersonalizationScope.Shared)> _
<WebBrowsableAttribute(True)> _
Public Property Scope As String
    Get
    Set
'Usage
Dim instance As CoreResultsWebPart
Dim value As String

value = instance.Scope

instance.Scope = value
[ResourcesAttribute("SearchResults_CRScope", "", "SearchResults_CRScope_ToolTip")]
[PersonalizableAttribute(PersonalizationScope.Shared)]
[WebBrowsableAttribute(true)]
public string Scope { get; set; }

Property Value

Type: System.String
A string containing the scope name.

See Also

Reference

CoreResultsWebPart Class

CoreResultsWebPart Members

Microsoft.Office.Server.Search.WebControls Namespace