SearchServiceApplicationProxy.AddRule - Méthode

Ajoute une nouvelle règle d'étendue Search à l' SearchAdminDatabase.

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

Syntaxe

'Déclaration
Public Function AddRule ( _
    ruleInfo As RuleInfo, _
    scopeId As Integer _
) As Integer
'Utilisation
Dim instance As SearchServiceApplicationProxy
Dim ruleInfo As RuleInfo
Dim scopeId As Integer
Dim returnValue As Integer

returnValue = instance.AddRule(ruleInfo, _
    scopeId)
public int AddRule(
    RuleInfo ruleInfo,
    int scopeId
)

Paramètres

  • scopeId
    Type : System.Int32

    ID de l'étendue spécifiée Search .

Valeur renvoyée

Type : System.Int32
ID de la nouvelle règle d'étendue Search .

Implémentations

ISearchSiteAdministrationServiceApplication.AddRule(RuleInfo, Int32)

Exceptions

Exception Condition
Exception

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

Remarques

Cette méthode ajoute une nouvelle règle d'étendue Search à l'étendue spécifiée Search à l' SearchAdminDatabase.

Voir aussi

Référence

SearchServiceApplicationProxy classe

SearchServiceApplicationProxy - Membres

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