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

  • accountName
    Type: System.String
    A string that specifies the account name.

See Also

Reference

CrawlRule Class

CrawlRule Members

SetCredentials Overload

Microsoft.Office.Server.Search.Administration Namespace