SearchServiceApplication.GetRulesInfo Method

Retrieves a list of RuleInfo objects for all of the ScopeRule objects defined within the specified SearchScope.

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

Syntax

'Declaration
Public Function GetRulesInfo ( _
    scopeId As Integer, _
    <OutAttribute> ByRef statusCode As Integer _
) As List(Of RuleInfo)
'Usage
Dim instance As SearchServiceApplication
Dim scopeId As Integer
Dim statusCode As Integer
Dim returnValue As List(Of RuleInfo)

returnValue = instance.GetRulesInfo(scopeId, _
    statusCode)
public List<RuleInfo> GetRulesInfo(
    int scopeId,
    out int statusCode
)

Parameters

  • statusCode
    Type: System.Int32

    The status code of method execution, where 0 indicates successful execution, and 1 indicates that the Search scope with the specified ID was not found.

Return Value

Type: System.Collections.Generic.List<RuleInfo>
The list of the SearchScopeRule information.

Implements

ISearchSiteAdministrationServiceApplication.GetRulesInfo(Int32, Int32)

Remarks

This value of the scopeId parameter must not be null .

See Also

Reference

SearchServiceApplication Class

SearchServiceApplication Members

Microsoft.Office.Server.Search.Administration Namespace