ProxyPortNumber Property

This read-only property specifies the port on the proxy server to which Search connects.

Syntax

IBuildServer.ProxyPortNumber

Remarks

By default, Search connects to port 80 on the proxy server, as expected.

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

Example

The following example displays the port on the proxy server to which Search connects.

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 proxy port number is: " & objBuildServer.ProxyPortNumber 
End If

'Release Objects
Set objBuildServer = Nothing
Set objSearchAdmin = Nothing 
 

See Also

SetProxySettings


© 1997-1998 Microsoft Corporation. All rights reserved.