CrawlRuleCollection.Create Method (CrawlRuleType, Boolean, Boolean, 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, _
isAdvancedRegularExpression As Boolean, _
caseSensitiveURL As Boolean, _
path As String _
) As CrawlRule
'Usage
Dim instance As CrawlRuleCollection
Dim type As CrawlRuleType
Dim isAdvancedRegularExpression As Boolean
Dim caseSensitiveURL As Boolean
Dim path As String
Dim returnValue As CrawlRule
returnValue = instance.Create(type, isAdvancedRegularExpression, _
caseSensitiveURL, path)
public CrawlRule Create(
CrawlRuleType type,
bool isAdvancedRegularExpression,
bool caseSensitiveURL,
string path
)
Parameters
type
Type: Microsoft.Office.Server.Search.Administration.CrawlRuleTypeThe crawl rule type.
- isAdvancedRegularExpression
Type: System.Boolean
- caseSensitiveURL
Type: System.Boolean
path
Type: System.StringThe path for the crawl rule.
Return Value
Type: Microsoft.Office.Server.Search.Administration.CrawlRule
The crawl rule.