Share via


IFPCPolicyRule::SetLimitSourcePortRange method

Applies to: desktop apps only

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

Syntax

HRESULT SetLimitSourcePortRange(
  [in]  long PortLow,
  [in]  long PortHi
);
FPCPolicyRule.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 value

C++

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

VB

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

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

FPCPolicyRule

 

 

Build date: 7/12/2010