CrawlRule.SetCredentials 方法 (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.
命名空间: Microsoft.Office.Server.Search.Administration
程序集: Microsoft.Office.Server.Search (在 microsoft.office.server.search.dll 中)
语法
声明
Public Sub SetCredentials ( _
type As CrawlRuleAuthenticationType, _
accountName As String, _
accountPassword As SecureString _
)
用法
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
)
参数
- 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.
另请参阅
参考
CrawlRule 类
CrawlRule 成员
Microsoft.Office.Server.Search.Administration 命名空间