Moonware.Server.WCF
SetTcpPortMapping Method



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

Parameters

router
Router IP address.
mapping
Dictionary of ports to change mapping.
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