: CrawlRule.SetCredentials (Método) (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.
Espacio de nombres:
Ensamblado: Microsoft.Office.Server.Search (in microsoft.office.server.search.dll)
Sintaxis
'Declaración
Public Sub SetCredentials ( _
type As CrawlRuleAuthenticationType, _
accountName As String, _
accountPassword As SecureString _
)
'Uso
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
)
Parámetros
- 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.
Vea también
Referencia
CrawlRule (Clase)
CrawlRule (Miembros)
Microsoft.Office.Server.Search.Administration (Espacio de nombres)