SetLimitSourcePortRange Method of the IFPCPolicyRule Interface

The SetLimitSourcePortRange method sets the lower and upper limits of the range of source port numbers to which the rule applies.

[C++]

Syntax

HRESULT SetLimitSourcePortRange(
  [in]  long PortLow,
  [in]  long PortHi
);

Parameters

PortLow

A 32-bit integer that specifies the lower limit of the source port range to which the rule applies.

PortHi

A 32-bit integer that specifies the upper limit of the source port range to which the rule applies.

Return Value

This method returns S_OK if the call is successful; otherwise, it returns an error code.
[Visual Basic]

Syntax

Sub SetLimitSourcePortRange( _
  ByVal PortLow As Long, _
  ByVal PortHi As Long _
)

Parameters

PortLow

A 32-bit integer that specifies the lower limit of the source port range to which the rule applies.

PortHi

A 32-bit integer that specifies the upper limit of the source port range to which the rule applies.

Return Value

This method has no return values. If the call is unsuccessful, an error is raised that can be intercepted by using an error handler.

Remarks

For access rules and server publishing rules, the lower and upper limits of the source port range can also be set when the rules are created in Forefront TMG Management. However, for Web Publishing rules, the limits of this range can be set only by using this method.

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

FPCPolicyRule


Send comments about this topic to Microsoft

Build date: 11/30/2009

© 2008 Microsoft Corporation. All rights reserved.