INetSharingPortMapping interface (netcon.h)

[Internet Connection Firewall may be altered or unavailable in subsequent versions. Instead, use the Windows Firewall API.]

The INetSharingPortMapping interface provides methods for managing a particular port mapping.

Inheritance

The INetSharingPortMapping interface inherits from the IDispatch interface. INetSharingPortMapping also has these types of members:

Methods

The INetSharingPortMapping interface has these methods.

 
INetSharingPortMapping::Delete

The Delete method deletes a port mapping from the list of port mappings for a particular connection.
INetSharingPortMapping::Disable

The Disable method disables a port mapping for a particular connection.
INetSharingPortMapping::Enable

The Enable method enables a port mapping for a particular connection.
INetSharingPortMapping::get_Properties

The get_Properties method retrieves the properties for a port mapping.

Remarks

Use the INetSharingConfiguration::AddPortMapping and INetSharingConfiguration::EnumPortMappings methods to obtain INetSharingPortMapping interfaces.

Requirements

Requirement Value
Minimum supported client Windows XP [desktop apps only]
Minimum supported server None supported
Target Platform Windows
Header netcon.h

See also

INetSharingConfiguration::AddPortMapping

INetSharingConfiguration::EnumPortMappings

Internet Connection Sharing and Internet Connection Firewall Interfaces

Internet Connection Sharing and Internet Connection Firewall Reference