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