SearchServiceApplication.GetPropertyQueryRuleCount method

Gets the count of query rules that match a specified property restriction, 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)

public int GetPropertyQueryRuleCount(
	string propertyName,
	string propertyValue
)

Parameters

propertyName
Type: System.String

The name of the property.

propertyValue
Type: System.String

The value of the property.

Return value

Type: System.Int32
The count of the query rules that match the specified property restriction, where the specified property name has the specified property value.

Implements

ISearchSiteAdministrationServiceApplication.GetPropertyQueryRuleCount(String, String)

This method returns the count of the query rules that match a specified property restriction, where the specified property name has the specified property value.

Show: