SearchServiceApplication.GetScopeIDFromName method

Retrieves the ID of a Search scope with the specified name and SearchScope consumer.

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

Syntax

'Declaration
Public Function GetScopeIDFromName ( _
    consumerName As String, _
    name As String _
) As Integer
'Usage
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
)

Parameters

  • consumerName
    Type: System.String

    The name of the Search scope consumer that manages the SearchScope.

Return value

Type: System.Int32
The ID of the SearchScope.

Implements

ISearchSiteAdministrationServiceApplication.GetScopeIDFromName(String, String)

Remarks

These values of the consumerName and name parameters must not be null .

See also

Reference

SearchServiceApplication class

SearchServiceApplication members

Microsoft.Office.Server.Search.Administration namespace