CrawlRule.SetCredentials, méthode (CrawlRuleAuthenticationType, String, SecureString) (Microsoft.Office.Server.Search.Administration)
Sets the authentication type, user name, and password information for the index engine to use when crawling content that the crawl rule applies to.
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, _
accountName As String, _
accountPassword As SecureString _
)
'Utilisation
Dim instance As CrawlRule
Dim type As CrawlRuleAuthenticationType
Dim accountName As String
Dim accountPassword As SecureString
instance.SetCredentials(type, accountName, accountPassword)
public void SetCredentials (
CrawlRuleAuthenticationType type,
string accountName,
SecureString accountPassword
)
Paramètres
- type
A value from the CrawlRuleAuthenticationType enumeration specifying the authentication type.
- accountName
A string that specifies the account name.
- accountPassword
A string that specifies the account password.
Voir aussi
Référence
CrawlRule, classe
Membres CrawlRule
Microsoft.Office.Server.Search.Administration, espace de noms