Microsoft Internet Security and Acceleration Server 2004 SDK |
The AddRange method creates a new FPCTunnelPortRange object in the collection and returns a reference to it.
HRESULT AddRange( BSTR bstrName, long lLowPort, long lHighPort, IFPCTunnelPortRange** ppNewDest );
The AddRange method creates a new FPCTunnelPortRange object in the collection and returns a reference to it.
Function AddRange( _ ByVal bstrName As String, _ ByVal lLowPort As Long, _ ByVal lHighPort As Long _ ) As FPCTunnelPortRange
This method returns a reference to an FPCTunnelPortRange object if successful. Otherwise, an error is raised that can be intercepted by using an error handler.
The following Visual Basic example shows how to create a new tunnel port range consisting of a single port.
Dim root As FPC Dim tpRanges As FPCTunnelPortRanges Dim newRange As FPCTunnelPortRange Set root = CreateObject("FPC.Root") Set tpRanges = root.GetContainingArray.ArrayPolicy.WebProxy.TunnelPortRanges set newRange = tpRanges.AddRange("SSL 3520", 3520, 3520) tpRanges.Save
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.