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 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 Scope GetScope(
Uri siteUrl,
string name
)
Parameters
- siteUrl
Type: System.Uri
A System.Uri object representing the site URL.
- name
Type: System.String
Return Value
Type: Microsoft.Office.Server.Search.Administration.Scope
A Scope object representing the specified search scope.