SearchServiceApplicationProxy.GetPropertyQueryRuleCount method

Retrieves the number of query rules that match a property restriction where the specified property has the specified value.

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

Syntax

'Declaration
Public Function GetPropertyQueryRuleCount ( _
    propertyName As String, _
    propertyValue As String _
) As Integer
'Usage
Dim instance As SearchServiceApplicationProxy
Dim propertyName As String
Dim propertyValue As String
Dim returnValue As Integer

returnValue = instance.GetPropertyQueryRuleCount(propertyName, _
    propertyValue)
public int GetPropertyQueryRuleCount(
    string propertyName,
    string propertyValue
)

Parameters

Return value

Type: System.Int32
The number of query rules where the property has the specified value.

Implements

ISearchSiteAdministrationServiceApplication.GetPropertyQueryRuleCount(String, String)

Exceptions

Exception Condition
Exception

An error, such as a SearchServiceApplicationFault, occurred during application execution.

Remarks

This method returns the count of the query rules that match a specified property restriction, where the property specified by the propertyName parameter has the value equal to propertyValue.

See also

Reference

SearchServiceApplicationProxy class

SearchServiceApplicationProxy members

Microsoft.Office.Server.Search.Administration namespace