CrawlRuleCollection.Create 方法 (CrawlRuleType, String)
创建一个爬网规则。
命名空间: Microsoft.Office.Server.Search.Administration
程序集: Microsoft.Office.Server.Search(位于 Microsoft.Office.Server.Search.dll 中)
语法
声明
Public Function Create ( _
type As CrawlRuleType, _
path As String _
) As CrawlRule
用法
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
)
参数
type
类型:Microsoft.Office.Server.Search.Administration.CrawlRuleType从指定的类型的爬网规则CrawlRuleType枚举的一个值。
path
类型:System.String一个字符串,包含路径 URL 的爬网规则。
返回值
类型:Microsoft.Office.Server.Search.Administration.CrawlRule
一个CrawlRule对象。