IWHSInfo2.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
Sub DeleteRedirectedPort ( _
    <InAttribute> TCP As Integer, _
    <InAttribute> internalPort As Short, _
    <InAttribute> externalPort As Short _
)
void DeleteRedirectedPort (
    [InAttribute] int TCP,
    [InAttribute] short internalPort,
    [InAttribute] short externalPort
)
void DeleteRedirectedPort (
    [InAttribute] int TCP, 
    [InAttribute] short internalPort, 
    [InAttribute] short externalPort
)
void DeleteRedirectedPort (
    /** @attribute InAttribute() */ int TCP, 
    /** @attribute InAttribute() */ short internalPort, 
    /** @attribute InAttribute() */ short externalPort
)
function DeleteRedirectedPort (
    TCP : int, 
    internalPort : short, 
    externalPort : short
)

Parameters

  • TCP
    An integer that indicates whether the port-forwarding rule is for Transmission Control Protocol (TCP) traffic. If the rule is for TCP traffic, the value is 1; otherwise, the value is 0.
  • internalPort
    A short integer that specifies the internal port to which you want to route traffic.
  • externalPort
    A short integer 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

IWHSInfo2 Interface
IWHSInfo2 Members
Microsoft.HomeServer.SDK.Interop.v1 Namespace