Partager via


ISearchSiteAdministrationServiceApplication.GetPropertyQueryRuleCount Method

Retrieves the number of query rules where the specified property name has the specified property value.

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

Syntax

'Declaration
<OperationContractAttribute> _
Function GetPropertyQueryRuleCount ( _
    propertyName As String, _
    propertyValue As String _
) As Integer
'Usage
Dim instance As ISearchSiteAdministrationServiceApplication
Dim propertyName As String
Dim propertyValue As String
Dim returnValue As Integer

returnValue = instance.GetPropertyQueryRuleCount(propertyName, _
    propertyValue)
[OperationContractAttribute]
int GetPropertyQueryRuleCount(
    string propertyName,
    string propertyValue
)

Parameters

Return Value

Type: System.Int32
The number of query rules that match the specified property restriction.

Remarks

This method retrieves the number of query rules where the specified property name has the specified property value.

See Also

Reference

ISearchSiteAdministrationServiceApplication Interface

ISearchSiteAdministrationServiceApplication Members

Microsoft.Office.Server.Search.Administration Namespace