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
siteUrl
Type: System.Uri
name
Type: System.StringThe name of the Scope.
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.