com.onlineobject.objectnet Namespace

NatDevice..::..GetAllMappingsAsync Method

Gets all mappings asynchronous.

Namespace:  com.onlineobject.objectnet
Assembly:  ObjectNetAPI (in ObjectNetAPI.dll)

Syntax


public Task<IEnumerable<Mapping>> GetAllMappingsAsync()

Return Value

The list of all forwarded ports

Exceptions


ExceptionCondition
com.onlineobject.objectnet..::..MappingExceptionMappingException

Examples


var mappings = await device.GetAllMappingsAsync(); foreach(var mapping in mappings) { Console.WriteLine(mapping) }