다음을 통해 공유


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