Moonware.Server.WCF
GetTcpPortMapping Method



Router IP address.
Gets the TCP port mapping for an UPnP router.
Syntax
'Declaration
 
<OperationBehaviorAttribute()>
<PrincipalPermissionAttribute(Name="", 
   Role="Edit Settings", 
   Authenticated=True, 
   Action=SecurityAction.Demand, 
   Unrestricted=False)>
Public Function GetTcpPortMapping( _
   ByVal router As String _
) As Dictionary(Of Integer,Boolean)
'Usage
 
Dim instance As MoonwareServerWCF
Dim router As String
Dim value As Dictionary(Of Integer,Boolean)
 
value = instance.GetTcpPortMapping(router)
[OperationBehaviorAttribute()]
[PrincipalPermissionAttribute(Name="", 
   Role="Edit Settings", 
   Authenticated=true, 
   Action=SecurityAction.Demand, 
   Unrestricted=false)]
public Dictionary<int,bool> GetTcpPortMapping( 
   string router
)
[OperationBehaviorAttribute()]
[PrincipalPermissionAttribute(Name="", 
   Role="Edit Settings", 
   Authenticated=true, 
   Action=SecurityAction.Demand, 
   Unrestricted=false)]
public:
Dictionary<int,bool>^ GetTcpPortMapping( 
   String^ router
) 

Parameters

router
Router IP address.

Return Value

Dictionary of mapped ports.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

MoonwareServerWCF Class
MoonwareServerWCF Members

Send Feedback