CrawlRule.SetCredentials method (CrawlRuleAuthenticationType, String, String, NameValueCollection, NameValueCollection, StringCollection)
Define a conta de acesso para esta regra. Esta versão do método só é válido para acesso de autenticação de formulários.
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, _
authSubmissionMethod As String, _
authSubmissionPath As String, _
authData As NameValueCollection, _
privateAuthData As NameValueCollection, _
errorPages As StringCollection _
)
'Uso
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
)
Parâmetros
- authSubmissionMethod
Type: System.String
- authSubmissionPath
Type: System.String
- authData
Type: System.Collections.Specialized.NameValueCollection
- privateAuthData
Type: System.Collections.Specialized.NameValueCollection
- errorPages
Type: System.Collections.Specialized.StringCollection