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)


Public Sub SetDefaultGatheringAccount ( _
    account As String, _
    password As SecureString _
Dim instance As Content
Dim account As String
Dim password As SecureString

instance.SetDefaultGatheringAccount(account, _
public void SetDefaultGatheringAccount(
    string account,
    SecureString password


  • account
    Type: System.String
    A string that contains the name of the crawler account.

See Also


Content Class

Content Members

Microsoft.Office.Server.Search.Administration Namespace

Other Resources

Defining Crawl Rules and File Types

Getting Started with the Enterprise Search Administration Object Model

Content Sources Overview

Managing Content

Enterprise Search Security Model