LumiSoft Net Help
DeletePortMapping Method (protocol, remoteHost, publicPort)
Namespaces ► LumiSoft.Net.UPnP.NAT ► UPnP_NAT_Client ► DeletePortMapping(String, String, Int32)
Deletes port mapping.
Declaration Syntax

C# | Visual Basic | Visual C++ | F#

    public void DeletePortMapping(
    	string protocol,
    	string remoteHost,
    	int publicPort
    )

    Public Sub DeletePortMapping (
    	protocol As String,
    	remoteHost As String,
    	publicPort As Integer
    )

    public:
    void DeletePortMapping(
    	String^ protocol,
    	String^ remoteHost,
    	int publicPort
    )

    member DeletePortMapping :
            protocol : string *
            remoteHost : string *
            publicPort : int -> unit

Parameters

protocol (String)
  Port mapping protocol. Nomrally this value TCP or UDP.

remoteHost (String)
  Remote host IP address.

publicPort (Int32)
  Public port number.

Exceptions

Exception | Condition
--- | ---
ArgumentNullException | Is raised when protocol is null reference.
UPnP_Exception | Is raised when UPnP device returns error.

Assembly: LumiSoft.Net (Module: LumiSoft.Net.dll) Version: 4.5.5510.19119