SetProxySettings Method

This method specifies the proxy configuration.

Syntax

IBuildServer.SetProxySettings(Usage, Address, Port, BypassLocal, BypassAddresses)

Parameters

Usage

The proxy server configuration:

0

Use the default system proxy server.

1

Do not use a proxy server.

2

Use the proxy server specified by the ProxyAddress property.

Address

The address of the proxy server through which Search operates.

Port

The port on the proxy server to which Search connects. By default this is 80.

BypassLocal

Whether the proxy server is bypassed for local addresses.

0

Use the proxy server for local addresses.

1

Bypass the proxy server for local addresses.

BypassAddresses

The addresses for which the proxy server is bypassed. If more than one address, the addresses must be separated by semicolons (;). See the Example.

Example

The following example specifies that Search uses the proxy server MyProxy on port 80, bypassing the proxy server for local addresses, and bypassing the proxy server for addresses MySite and MyOtherSite.

Option Explicit 
On Error Resume Next

Dim objSearchAdmin, objBuildServer 

Set objSearchAdmin = CreateObject("Search.SearchAdmin.1")
Set objBuildServer = objSearchAdmin.BuildServer

objBuildServer.SetProxySettings(2, "MyProxy", 80, 1, _ 
  "MySite; MyOtherSite") 

'Release objects 
Set objBuildServer = Nothing
Set objSearchAdmin = Nothing 
 

See Also

ProxyAddress, ProxyBypassAddressesList, ProxyBypassForLocalAddresses, ProxyPortNumber, ProxyUsageSetting


© 1997-1998 Microsoft Corporation. All rights reserved.