Share via


RemoteScopes.GetScope method

Gets the Scope.

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 RemoteScopes
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

Return value

Type: Microsoft.Office.Server.Search.Administration.Scope
A search scope.

Remarks

The siteUrl must be any URL to an SPSite, or null .

The name must be not null . It must be a non-empty string that does not exceed 60 characters.

See also

Reference

RemoteScopes class

RemoteScopes members

Microsoft.Office.Server.Search.Administration namespace