Scopes.GetScope 方法 (Microsoft.Office.Server.Search.Administration)

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

命名空间: Microsoft.Office.Server.Search.Administration
程序集: Microsoft.Office.Server.Search (在 microsoft.office.server.search.dll 中)

语法

声明
Public Function GetScope ( _
    siteUrl As Uri, _
    name As String _
) As Scope
用法
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
)

参数

  • siteUrl
    A System.Uri object representing the site URL.
  • name

返回值

A Scope object representing the specified search scope.

另请参阅

参考

Scopes 类
Scopes 成员
Microsoft.Office.Server.Search.Administration 命名空间