Partager via


CrawlRule.SetCredentials - Méthode (CrawlRuleAuthenticationType, String, String, NameValueCollection, NameValueCollection, StringCollection)

Définit le compte d'accès de cette règle. Cette version de la méthode est uniquement valide pour l'accès d'authentification par formulaires.

Espace de noms :  Microsoft.Office.Server.Search.Administration
Assembly :  Microsoft.Office.Server.Search (dans Microsoft.Office.Server.Search.dll)

Syntaxe

'Déclaration
Public Sub SetCredentials ( _
    type As CrawlRuleAuthenticationType, _
    authSubmissionMethod As String, _
    authSubmissionPath As String, _
    authData As NameValueCollection, _
    privateAuthData As NameValueCollection, _
    errorPages As StringCollection _
)
'Utilisation
Dim instance As CrawlRule
Dim type As CrawlRuleAuthenticationType
Dim authSubmissionMethod As String
Dim authSubmissionPath As String
Dim authData As NameValueCollection
Dim privateAuthData As NameValueCollection
Dim errorPages As StringCollection

instance.SetCredentials(type, authSubmissionMethod, _
    authSubmissionPath, authData, privateAuthData, _
    errorPages)
public void SetCredentials(
    CrawlRuleAuthenticationType type,
    string authSubmissionMethod,
    string authSubmissionPath,
    NameValueCollection authData,
    NameValueCollection privateAuthData,
    StringCollection errorPages
)

Paramètres

Voir aussi

Référence

CrawlRule classe

CrawlRule - Membres

SetCredentials - Surcharge

Microsoft.Office.Server.Search.Administration - Espace de noms