CrawlRule.SetCredentials Method (CrawlRuleAuthenticationType, String, SecureString)
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.CrawlRuleAuthenticationTypeA value from the CrawlRuleAuthenticationType enumeration specifying the authentication type.
accountName
Type: System.StringA string that specifies the account name.
accountPassword
Type: System.Security.SecureStringA string that specifies the account password.