ProxyBypassForLocalAddresses Property

This read-only property specifies whether the proxy server is bypassed for local (intranet) addresses.

Syntax

IBuildServer.ProxyBypassForLocalAddresses

Remarks

ProxyBypassForLocalAddresses has one of the following values:

0

The proxy server is used for local addresses.

1

The proxy server is bypassed for local addresses.

This property is set by the fourth argument to the SetProxySettings method.

Example

The following example displays whether the proxy server is bypassed for local addresses.

Option Explicit 
On Error Resume Next

Const ByPassLocal = 1 

Dim objSearchAdmin, objBuildServer, ProxyAdd, ProxyBypassLocal 

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

ProxyAdd = objBuildServer.ProxyAddress 

If ProxyAdd = "" Then 
  Wscript.Echo "Proxy addressing is not used."
Else
  ProxyBypassLocal = objBuildServer.ProxyBypassForLocalAddresses
  If ProxyBypassLocal = ByPassLocal Then
    Wscript.Echo "The proxy server is bypassed For local addresses." 
  Else
    Wscript.Echo "The proxy server is used For local addresses." 
  End If
End If

'Release Objects
Set objBuildServer = Nothing
Set objSearchAdmin = Nothing 
 

See Also

SetProxySettings


© 1997-1998 Microsoft Corporation. All rights reserved.