Share via


CrawlRuleCollection.Exists Method

Returns a Boolean value that indicates whether the specified crawl rule exists in the collection.

Namespace:  Microsoft.Office.Server.Search.Administration
Assembly:  Microsoft.Office.Server.Search (in Microsoft.Office.Server.Search.dll)

Syntax

'Declaration
Public Function Exists ( _
    path As String _
) As Boolean
'Usage
Dim instance As CrawlRuleCollection
Dim path As String
Dim returnValue As Boolean

returnValue = instance.Exists(path)
public bool Exists(
    string path
)

Parameters

  • path
    Type: System.String
    A string that contains the path of the crawl rule.

Return Value

Type: System.Boolean
true if the specified crawl rule exists; otherwise, false.

See Also

Reference

CrawlRuleCollection Class

CrawlRuleCollection Members

Microsoft.Office.Server.Search.Administration Namespace