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
propertyName
Type: System.StringThe name of the property.
propertyValue
Type: System.StringThe value of the property.
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