CrawlRule.AccountName property

Gets a string containing the account name for the crawl rule.

Namespace:  Microsoft.Office.Server.Search.Administration
Assembly:  Microsoft.Office.Server.Search (in Microsoft.Office.Server.Search.dll)

Syntax

'Declaration
Public ReadOnly Property AccountName As String
    Get
'Usage
Dim instance As CrawlRule
Dim value As String

value = instance.AccountName
public string AccountName { get; }

Property value

Type: System.String
A string containing the account name.

Remarks

The AccountName property returns an empty string for exclusion type crawl rules.

Use the SetCredentials() method of the CrawlRule class to change the account name for a crawl rule.

See also

Reference

CrawlRule class

CrawlRule members

Microsoft.Office.Server.Search.Administration namespace