CrawlRuleCollection.Create 方法 (CrawlRuleType, Boolean, String)
创建一个爬网规则。
命名空间: Microsoft.Office.Server.Search.Administration
程序集: Microsoft.Office.Server.Search(位于 Microsoft.Office.Server.Search.dll 中)
语法
声明
Public Function Create ( _
type As CrawlRuleType, _
isAdvancedRegularExpression As Boolean, _
path As String _
) As CrawlRule
用法
Dim instance As CrawlRuleCollection
Dim type As CrawlRuleType
Dim isAdvancedRegularExpression As Boolean
Dim path As String
Dim returnValue As CrawlRule
returnValue = instance.Create(type, isAdvancedRegularExpression, _
path)
public CrawlRule Create(
CrawlRuleType type,
bool isAdvancedRegularExpression,
string path
)
参数
type
类型:Microsoft.Office.Server.Search.Administration.CrawlRuleType爬网规则类型。
- isAdvancedRegularExpression
类型:System.Boolean
path
类型:System.String爬网规则的路径。
返回值
类型:Microsoft.Office.Server.Search.Administration.CrawlRule
爬网规则中。