CrawlRule.SetCredentials method (CrawlRuleAuthenticationType, StringCollection, StringCollection)
Define a página de erro de tipo e cookies de autenticação para o mecanismo de índice a serem usadas no rastreamento que a regra de rastreamento se aplica a conteúdo.
Namespace: Microsoft.Office.Server.Search.Administration
Assembly: Microsoft.Office.Server.Search (in Microsoft.Office.Server.Search.dll)
Syntax
'Declaração
Public Sub SetCredentials ( _
type As CrawlRuleAuthenticationType, _
cookies As StringCollection, _
errorPages As StringCollection _
)
'Uso
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
)
Parâmetros
type
Type: Microsoft.Office.Server.Search.Administration.CrawlRuleAuthenticationTypeO tipo de autenticação.
cookies
Type: System.Collections.Specialized.StringCollectionOs cookies de autenticação.
errorPages
Type: System.Collections.Specialized.StringCollectionA página de erro de autenticação.