CrawlRuleCollection.Create-Methode (CrawlRuleType, String)
Erstellt eine Crawlregel.
Namespace: Microsoft.Office.Server.Search.Administration
Assembly: Microsoft.Office.Server.Search (in Microsoft.Office.Server.Search.dll)
Syntax
'Declaration
Public Function Create ( _
type As CrawlRuleType, _
path As String _
) As CrawlRule
'Usage
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
)
Parameter
type
Typ: Microsoft.Office.Server.Search.Administration.CrawlRuleTypeEin Wert aus der CrawlRuleType -Enumeration, die den Typ der Crawlregel.
path
Typ: System.StringEine Zeichenfolge, die den URL Pfad Crawlregel enthält.
Rückgabewert
Typ: Microsoft.Office.Server.Search.Administration.CrawlRule
Ein CrawlRule -Objekt.