Share via


SearchServiceApplicationProxy.GetPropertyQueryRuleCount - Méthode

Récupère le nombre de règles de requête qui correspondent à une restriction de propriété où la propriété spécifiée a la valeur spécifiée.

Espace de noms :  Microsoft.Office.Server.Search.Administration
Assembly :  Microsoft.Office.Server.Search (dans Microsoft.Office.Server.Search.dll)

Syntaxe

'Déclaration
Public Function GetPropertyQueryRuleCount ( _
    propertyName As String, _
    propertyValue As String _
) As Integer
'Utilisation
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
)

Paramètres

Valeur renvoyée

Type : System.Int32
Le nombre de règles de requête dans laquelle la propriété a la valeur spécifiée.

Implémentations

ISearchSiteAdministrationServiceApplication.GetPropertyQueryRuleCount(String, String)

Exceptions

Exception Condition
Exception

Une erreur, par exemple un SearchServiceApplicationFault, s'est produite pendant l'exécution de l'application.

Remarques

Cette méthode renvoie le nombre de règles de requête qui correspondent à une restriction de propriété spécifiée, où la propriété spécifiée par le paramètre propertyName a la valeur est égale à propertyValue.

Voir aussi

Référence

SearchServiceApplicationProxy classe

SearchServiceApplicationProxy - Membres

Microsoft.Office.Server.Search.Administration - Espace de noms