Share via


Scopes.GetScope Method

Returns the site-level scope with the specified name, from the specified site.

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

Syntax

'Declaration
Public Overrides Function GetScope ( _
    siteUrl As Uri, _
    name As String _
) As Scope
'Usage
Dim instance As Scopes
Dim siteUrl As Uri
Dim name As String
Dim returnValue As Scope

returnValue = instance.GetScope(siteUrl, _
    name)
public override Scope GetScope(
    Uri siteUrl,
    string name
)

Parameters

  • siteUrl
    Type: System.Uri

    A System.Uri object representing the site URL.

Return Value

Type: Microsoft.Office.Server.Search.Administration.Scope
A Scope object representing the specified search scope.

See Also

Reference

Scopes Class

Scopes Members

Microsoft.Office.Server.Search.Administration Namespace