CrawlRuleCollection.Exists 方法
返回一个布尔值,该值指示集合中是否存在指定爬网规则。
命名空间: Microsoft.Office.Server.Search.Administration
程序集: Microsoft.Office.Server.Search(位于 Microsoft.Office.Server.Search.dll 中)
语法
声明
Public Function Exists ( _
path As String _
) As Boolean
用法
Dim instance As CrawlRuleCollection
Dim path As String
Dim returnValue As Boolean
returnValue = instance.Exists(path)
public bool Exists(
string path
)
参数
path
类型:System.String一个字符串,包含路径的爬网规则。
返回值
类型:System.Boolean
true如果指定爬网规则存在 ;否则为false。