This documentation is archived and is not being maintained.

INetFwOpenPorts::Remove Method

Removes the specified port from this collection.

Namespace:  Microsoft.TeamFoundation.Common
Assembly:  Microsoft.TeamFoundation.Common (in Microsoft.TeamFoundation.Common.dll)

void Remove(
	[InAttribute] int portNumber, 
	[InAttribute] NET_FW_IP_PROTOCOL_ ipProtocol
)

Parameters

portNumber
Type: System::Int32

The port number of the port to remove.

ipProtocol
Type: Microsoft.TeamFoundation.Common::NET_FW_IP_PROTOCOL_

The NET_FW_IP_PROTOCOL_) value indicating the protocol of the port to remove.

Show: