WHSInfoClass.DeleteRedirectedPort Method
Deletes the specified port-forwarding rule from the UPnP certified router that is connected to the home server.
Namespace: Microsoft.HomeServer.SDK.Interop.v1
Assembly: Microsoft.HomeServer.SDK.Interop.v1 (in microsoft.homeserver.sdk.interop.v1.dll)
Usage
Syntax
'Declaration
Public Overridable Sub DeleteRedirectedPort ( _
<InAttribute> TCP As Integer, _
<InAttribute> internalPort As Short, _
<InAttribute> externalPort As Short _
) Implements IWHSInfo2.DeleteRedirectedPort
public virtual void IWHSInfo2.DeleteRedirectedPort (
[InAttribute] int TCP,
[InAttribute] short internalPort,
[InAttribute] short externalPort
)
public:
virtual void DeleteRedirectedPort (
[InAttribute] int TCP,
[InAttribute] short internalPort,
[InAttribute] short externalPort
) = IWHSInfo2::DeleteRedirectedPort
Parameters
TCP
An integer value that indicates whether or not the port-forwarding rule is for Transmission Control Protocol (TCP) traffic.If the rule is for TCP traffic, the value is 1; if the rule is not for TCP traffic, the value is 0.
- internalPort
A short integer value that specifies the internal port to which you want to route traffic.
- externalPort
A short integer value that specifies the external port from which you want to route traffic.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Development Platforms
Windows Server 2008, Windows Vista, Windows Server 2003, Windows XP
Target Platforms
Windows Home Server
See Also
Reference
WHSInfoClass Class
WHSInfoClass Members
Microsoft.HomeServer.SDK.Interop.v1 Namespace