CrawlRuleCollection.Create Method (CrawlRuleType, String)
Creates a crawl rule.
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
)
Parameters
type
Type: Microsoft.Office.Server.Search.Administration.CrawlRuleTypeA value from the CrawlRuleType enumeration specifying the type of crawl rule.
path
Type: System.StringA string that contains the path URL for the crawl rule.
Return Value
Type: Microsoft.Office.Server.Search.Administration.CrawlRule
A CrawlRule object.