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
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.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.
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 7 or Windows Vista. |
Server | Requires Windows Server 2008 R2 or Windows Server 2008 x64 Edition with SP2. |
Version | Requires Forefront Threat Management Gateway (TMG) 2010. |
IDL | Declared in Msfpccom.idl. |
DLL | Requires Msfpccom.dll. |
See Also
Send comments about this topic to Microsoft
Build date: 6/30/2010