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
type
Type: Microsoft.Office.Server.Search.Administration.CrawlRuleAuthenticationTypeThe authentication type.
cookies
Type: System.Collections.Specialized.StringCollectionThe authentication cookies.
errorPages
Type: System.Collections.Specialized.StringCollectionThe authentication error page.