INetSharingPortMappingCollection interface (netcon.h)

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

The INetSharingPortMappingCollection interface makes it possible for scripting languages such as VBScript and JScript to enumerate port mappings.


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


The INetSharingPortMappingCollection interface has these methods.


The get__NewEnum method retrieves an enumerator for the port mapping collection.

The get__Count method retrieves the number of items in the port mapping collection.


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

See also


Internet Connection Sharing and Internet Connection Firewall Interfaces

Internet Connection Sharing and Internet Connection Firewall Reference