Compartilhar via


SearchServiceApplication.GetScopeIDFromName method

Recupera a ID de um escopo de Search com o consumidor deScope nome e Searchespecificado.

Namespace:  Microsoft.Office.Server.Search.Administration
Assembly:  Microsoft.Office.Server.Search (in Microsoft.Office.Server.Search.dll)

Syntax

'Declaração
Public Function GetScopeIDFromName ( _
    consumerName As String, _
    name As String _
) As Integer
'Uso
Dim instance As SearchServiceApplication
Dim consumerName As String
Dim name As String
Dim returnValue As Integer

returnValue = instance.GetScopeIDFromName(consumerName, _
    name)
public int GetScopeIDFromName(
    string consumerName,
    string name
)

Parâmetros

  • consumerName
    Type: System.String

    O nome do consumidor Search escopo que gerencia o SearchScope.

Valor retornado

Type: System.Int32
A ID do SearchScope.

Implements

ISearchSiteAdministrationServiceApplication.GetScopeIDFromName(String, String)

Comentários

Esses valores de parâmetros consumerName e o nome não devem ser null .

Ver também

Referência

SearchServiceApplication class

SearchServiceApplication members

Microsoft.Office.Server.Search.Administration namespace