IStaticPortMappingCollection interface (natupnp.h)

The IStaticPortMappingCollection interface provides methods to manage the collection of static port mappings.

Inheritance

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

Methods

The IStaticPortMappingCollection interface has these methods.

 
IStaticPortMappingCollection::Add

The Add method creates a new port mapping and adds it to the collection.
IStaticPortMappingCollection::get__NewEnum

The get__NewEnum method retrieves an enumerator for the static port mappings collection.
IStaticPortMappingCollection::get_Count

The get_Count method retrieves the number of port mappings in the collection.
IStaticPortMappingCollection::get_Item

The get_Item method retrieves the specified port mapping from the collection.
IStaticPortMappingCollection::Remove

The Remove method removes the specified port mapping from the collection.

Requirements

Requirement Value
Minimum supported client Windows XP [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header natupnp.h

See also

IStaticPortMapping

Network Address Translation Traversal Interfaces

Network Address Translation Traversal Reference