This method sets the account through which Search accesses a site.
Syntax
ISiteRestriction.SetAccount(Name, Password, AuthenticationType)
Parameters
Name
The account name under which Search accesses a site. Search sets the AccountName property for the restricted site to this value.
Password
The password for this account.
AuthenticationType
The type of authentication that Search uses to access this site. Search sets the AuthenticationType property for the restricted site to this value.
Remarks
The types of authentication are:
Name | Value | Description |
AUTH_TYPE_ANONYMOUS | 0 | Use anonymous login (default). |
AUTH_TYPE_NTLM | 1 | Use Windows NT challenge-and-response login. |
AUTH_TYPE_BASIC | 2 | Use basic (clear text) login. |
Example
See Creating and Accessing an ISiteRestriction Interface Object.
See Also