Microsoft Internet Security and Acceleration Server 2004 SDK

IFPCPolicyRule::SetLimitSourcePortRange[C++]

FPCPolicyRule.SetLimitSourcePortRange [Visual Basic]

[C++]

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

HRESULT SetLimitSourcePortRange(
  long PortLow,
  long PortHi
);

Parameters

PortLow
[in] A 32-bit integer that specifies the lower limit of the source port range to which the rule applies.
PortHi
[in] A 32-bit integer that specifies the upper limit of the source port range to which the rule applies.

Return Values

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

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 ISA Server Management. However, for Web Publishing rules, the limits of this range can be set only by using this method.

[Visual Basic]

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

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

Parameters

PortLow
[in] A 32-bit integer that specifies the lower limit of the source port range to which the rule applies.
PortHi
[in] A 32-bit integer that specifies the upper limit of the source port range to which the rule applies.

Return Values

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 ISA Server Management. However, for Web Publishing rules, the limits of this range can be set only by using this method.

Requirements

Server: Requires Windows Server 2003 or Windows 2000.
Version: Requires Internet Security and Acceleration Server 2004.
Header: Declared in Msfpccom.idl.
Library: Use Microsoft Internet Security and Acceleration Server 2004 Administration Library.

See Also

FPCPolicyRule