Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Sets the authentication type, user name, and password information for the index engine to use when crawling content that the crawl rule applies to.
Namespace: Microsoft.Office.Server.Search.Administration
Assembly: Microsoft.Office.Server.Search (in Microsoft.Office.Server.Search.dll)
Syntax
'Declaration
Public Sub SetCredentials ( _
type As CrawlRuleAuthenticationType, _
accountName As String, _
accountPassword As SecureString _
)
'Usage
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
)
Parameters
- type
Type: Microsoft.Office.Server.Search.Administration.CrawlRuleAuthenticationType
A value from the CrawlRuleAuthenticationType enumeration specifying the authentication type.
- accountName
Type: System.String
A string that specifies the account name.
- accountPassword
Type: System.Security.SecureString
A string that specifies the account password.