IFWXConnection::SetIpFilter method

Applies to: desktop apps only

The SetIpFilter method sets the IP filter for the connection. Either sets a new IP filter if there had not been one or replaces the current IP filter with a new one.

Syntax

HRESULT SetIpFilter(
  [in]  IFWXIpFilter *pIpFilter
);

Parameters

  • pIpFilter [in]
    Pointer to the IFWXIpFilter interface. Setting this parameter equal to NULL will result in no IP address restrictions for this connection.

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

This method should not be used for emulated connections.

Requirements

Minimum supported client

None supported

Minimum supported server

Windows Server 2008 R2, Windows Server 2008 with SP2 (64-bit only)

Version

Forefront Threat Management Gateway (TMG) 2010

Header

Wspfwext.idl

DLL

Wspsrv.exe

See also

IFWXConnection

IFWXIpFilter

 

 

Build date: 7/12/2010