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