Content.SetDefaultGatheringAccount Method
Sets the default crawler account and password.
Namespace: Microsoft.Office.Server.Search.Administration
Assembly: Microsoft.Office.Server.Search (in Microsoft.Office.Server.Search.dll)
Syntax
'Declaration
Public Sub SetDefaultGatheringAccount ( _
account As String, _
password As SecureString _
)
'Usage
Dim instance As Content
Dim account As String
Dim password As SecureString
instance.SetDefaultGatheringAccount(account, _
password)
public void SetDefaultGatheringAccount(
string account,
SecureString password
)
Parameters
- account
Type: System.String
A string that contains the name of the crawler account.
- password
Type: System.Security.SecureString
A string that contains the password for the crawler account.
See Also
Reference
Microsoft.Office.Server.Search.Administration Namespace
Other Resources
Defining Crawl Rules and File Types
Getting Started with the Enterprise Search Administration Object Model