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
)

参数

  • path
    类型:System.String

    一个字符串,包含路径 URL 的爬网规则。

返回值

类型:Microsoft.Office.Server.Search.Administration.CrawlRule
一个CrawlRule对象。

另请参阅

引用

CrawlRuleCollection 类

CrawlRuleCollection 成员

Create 重载

Microsoft.Office.Server.Search.Administration 命名空间