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.StringThe name of the Search scope consumer that manages the SearchScope.
name
Type: System.StringThe name of 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