Compartilhar via


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

Ver também

Referência

CrawlRule class

CrawlRule members

SetCredentials overload

Microsoft.Office.Server.Search.Administration namespace