The SetLimitSourcePortRange method sets the lower and upper limits of the range of source port numbers to which the rule applies.
HRESULT SetLimitSourcePortRange( [in] long PortLow, [in] long PortHi );
A 32-bit integer that specifies the lower limit of the source port range to which the rule applies.
A 32-bit integer that specifies the upper limit of the source port range to which the rule applies.
Sub SetLimitSourcePortRange( _ ByVal PortLow As Long, _ ByVal PortHi As Long _ )
A 32-bit integer that specifies the lower limit of the source port range to which the rule applies.
A 32-bit integer that specifies the upper limit of the source port range to which the rule applies.
This method has no return values. If the call is unsuccessful, an error is raised that can be intercepted by using an error handler.
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.
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. |
Send comments about this topic to Microsoft
Build date: 11/30/2009
© 2008 Microsoft Corporation. All rights reserved.