ISearchSiteAdministrationServiceApplication.GetScopeIDFromName method
Retrieves the ID of a Search scope with the specified name and scope consumer.
Namespace: Microsoft.Office.Server.Search.Administration
Assembly: Microsoft.Office.Server.Search (in Microsoft.Office.Server.Search.dll)
Syntax
'Declaration
<OperationContractAttribute> _
Function GetScopeIDFromName ( _
consumerName As String, _
name As String _
) As Integer
'Usage
Dim instance As ISearchSiteAdministrationServiceApplication
Dim consumerName As String
Dim name As String
Dim returnValue As Integer
returnValue = instance.GetScopeIDFromName(consumerName, _
name)
[OperationContractAttribute]
int GetScopeIDFromName(
string consumerName,
string name
)
Parameters
consumerName
Type: System.StringThe name of the scope consumer.
name
Type: System.StringThe name of the Scope object.
Return value
Type: System.Int32
The ID of the Scope object.
Remarks
Implementing classes should ensure that the values of the consumerName parameter and name parameter must not be null .
See also
Reference
ISearchSiteAdministrationServiceApplication interface