CrawlRuleCollection.Create 方法 (Microsoft.Office.Server.Search.Administration)

Creates a crawl rule.

命名空间: 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
    A value from the CrawlRuleType enumeration specifying the type of crawl rule.
  • path
    A string that contains the path URL for the crawl rule.

返回值

A CrawlRule object.

另请参阅

参考

CrawlRuleCollection 类
CrawlRuleCollection 成员
Microsoft.Office.Server.Search.Administration 命名空间