Share via


IFPCServerPublishingProperties::OverridePublishPort property

Applies to: desktop apps only

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.

This property is read/write.

Syntax

HRESULT put_OverridePublishPort(
  long lPublishPort
);

HRESULT get_OverridePublishPort(
  long *plPublishPort
);
' Data type: Long

Property OverridePublishPort( _
  ByVal lPublishPort As long, _
  ByVal plPublishPort As long _
) 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.

Error codes

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

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

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2008 R2, Windows Server 2008 with SP2 (64-bit only)

Version

Forefront Threat Management Gateway (TMG) 2010

IDL

Msfpccom.idl

DLL

Msfpccom.dll

See also

FPCServerPublishingProperties

 

 

Build date: 7/12/2010