다음을 통해 공유


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.String

    The name of the scope consumer.

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

ISearchSiteAdministrationServiceApplication Members

Microsoft.Office.Server.Search.Administration Namespace