RedirectHostPort Property of the IFPCPrimaryRoute Interface

The RedirectHostPort property gets the port to use for redirecting requests from Web proxy clients to a specified host.

HRESULT get_RedirectHostPort(
	long* plPort



Pointer to a variable that receives a 32-bit integer specifying the port number.

Return Value

This property method returns S_OK if the call is successful; otherwise, it returns an error code.

[Visual Basic]
Property RedirectHostPort As Long

Property Value

A 32-bit integer that specifies the port number.


This property is read-only. It can be set by calling the SetRedirectHostAndPorts method. Its range of permissible values is from 1 through 65535.

This property is applicable only if the RouteType property is set to fpcPrimaryRouteAlternate, which indicates that requests from Web proxy clients are redirected to a specified host.


Client Requires Windows Vista or Windows XP.
Server Requires Windows Server 2008.
Version Requires Forefront Threat Management Gateway (TMG).

Declared in Msfpccom.idl.


Requires Msfpccom.dll.

See Also


Send comments about this topic to Microsoft

Build date: 11/30/2009

© 2008 Microsoft Corporation. All rights reserved.