OverridePublishPort Property of the IFPCServerPublishingProperties Interface

The OverridePublishPort property gets or sets the port number for overriding the default port on which the Forefront TMG computer will listen for requests on behalf of the server published by the rule. The default port is specified in the PrimaryConnections property of the FPCProtocolDefinition object for the protocol specified in the PublishedProtocol property. If the value of the OverridePublishPort property is nonzero and if the protocol definition specifies only a single port for primary connections, this value will override the default port number. If the protocol definition specifies multiple ports for primary connections, these ports cannot be overridden, and the value of the OverridePublishPort property must be set to zero.

[C++]
HRESULT put_OverridePublishPort(
	long lPublishPort
);
HRESULT get_OverridePublishPort(
	long* plPublishPort
);

Parameters

plPublishPort

Pointer to a 32-bit integer that is set on return to the port number for overriding the default port on which the Forefront TMG computer listens for requests on behalf of the server published by the rule, or to 0 if the default port should not be overridden.

lPublishPort

A 32-bit integer that specifies the port number for overriding the default port on which the Forefront TMG computer listens for requests on behalf of the server published by the rule.

Return Value

These property methods return S_OK if the call is successful; otherwise, they return an error code.

[Visual Basic]
Property OverridePublishPort As Long

Property Value

A 32-bit integer that specifies the port number for overriding the default port on which the Forefront TMG computer listens for requests on behalf of the server published by the rule.

Remarks

This property is read/write. Its default value is 0, and its range of permissible values is from 0 through 65535.

If the value of this property is 0, the default port number assigned to the published protocol is used.

Requirements

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

Declared in Msfpccom.idl.

DLL

Requires Msfpccom.dll.

See Also

FPCServerPublishingProperties


Send comments about this topic to Microsoft

Build date: 11/30/2009

© 2008 Microsoft Corporation. All rights reserved.

[an error occurred while processing this directive]