ProxyAddress Property

This read-only property specifies the name of the proxy server through which Search operates.

Syntax

IBuildServer.ProxyAddress

Remarks

This property is empty if you specify either the "Do not connect using a proxy server" or "Use the system default proxy server" setting in MMC. This property is set by the second argument to the SetProxySettings method.

Example

The following example displays the proxy server address used by Search.

Option Explicit 
On Error Resume Next

Dim objSearchAdmin, objBuildServer, ProxyAdd 

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

ProxyAdd = objBuildServer.ProxyAddress 

If ProxyAdd = "" Then 
  Wscript.Echo "Proxy addressing is not used."
Else
  Wscript.Echo "The Search proxy address is: " & ProxyAdd
End If

'Release Objects
Set objBuildServer = Nothing
Set objSearchAdmin = Nothing 
 

See Also

SetProxySettings


© 1997-1998 Microsoft Corporation. All rights reserved.