CrawlRuleCollection.Create - Méthode (CrawlRuleType, String)
Crée une règle d'analyse.
Espace de noms : Microsoft.Office.Server.Search.Administration
Assembly : Microsoft.Office.Server.Search (dans Microsoft.Office.Server.Search.dll)
Syntaxe
'Déclaration
Public Function Create ( _
type As CrawlRuleType, _
path As String _
) As CrawlRule
'Utilisation
Dim instance As CrawlRuleCollection
Dim type As CrawlRuleType
Dim path As String
Dim returnValue As CrawlRule
returnValue = instance.Create(type, path)
public CrawlRule Create(
CrawlRuleType type,
string path
)
Paramètres
type
Type : Microsoft.Office.Server.Search.Administration.CrawlRuleTypeValeur de l'énumération CrawlRuleType qui spécifie le type de règle d'analyse.
path
Type : System.StringChaîne qui contient l'URL du chemin d'accès de la règle d'analyse.
Valeur renvoyée
Type : Microsoft.Office.Server.Search.Administration.CrawlRule
Un objet CrawlRule .
Voir aussi
Référence
Microsoft.Office.Server.Search.Administration - Espace de noms