다음을 통해 공유


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)

Syntax

'Declaration
Public Function GetPropertyQueryRuleCount ( _
    propertyName As String, _
    propertyValue As String _
) As Integer
'Usage
Dim instance As SearchServiceApplication
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 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)

Remarks

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.

See Also

Reference

SearchServiceApplication Class

SearchServiceApplication Members

Microsoft.Office.Server.Search.Administration Namespace