Share via


WHSInfoClass.IWHSInfo_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 IWHSInfo_DeleteRedirectedPort ( _
    <InAttribute> TCP As Integer, _
    <InAttribute> internalPort As Short, _
    <InAttribute> externalPort As Short _
) Implements IWHSInfo.DeleteRedirectedPort
public virtual void IWHSInfo.DeleteRedirectedPort (
    [InAttribute] int TCP,
    [InAttribute] short internalPort,
    [InAttribute] short externalPort
)
public:
virtual void IWHSInfo_DeleteRedirectedPort (
    [InAttribute] int TCP, 
    [InAttribute] short internalPort, 
    [InAttribute] short externalPort
) = IWHSInfo::DeleteRedirectedPort

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.

Remarks

This method is for internal use only. To delete a port-forwarding rule, use the DeleteRedirectedPort method.

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