Share via


CrawlRule.SetCredentials method (CrawlRuleAuthenticationType, StringCollection, StringCollection)

Sets the authentication type, cookies, and error page for the index engine to use when crawling content that the crawl rule applies to.

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

Syntax

'Declaration
Public Sub SetCredentials ( _
    type As CrawlRuleAuthenticationType, _
    cookies As StringCollection, _
    errorPages As StringCollection _
)
'Usage
Dim instance As CrawlRule
Dim type As CrawlRuleAuthenticationType
Dim cookies As StringCollection
Dim errorPages As StringCollection

instance.SetCredentials(type, cookies, _
    errorPages)
public void SetCredentials(
    CrawlRuleAuthenticationType type,
    StringCollection cookies,
    StringCollection errorPages
)

Parameters

See also

Reference

CrawlRule class

CrawlRule members

SetCredentials overload

Microsoft.Office.Server.Search.Administration namespace