INetFwOpenPorts.Remove Method
Removes the specified port from this collection.
Namespace: Microsoft.TeamFoundation.Common
Assembly: Microsoft.TeamFoundation.Common (in Microsoft.TeamFoundation.Common.dll)
Syntax
'Declaration
Sub Remove ( _
portNumber As Integer, _
ipProtocol As NET_FW_IP_PROTOCOL_ _
)
void Remove(
int portNumber,
NET_FW_IP_PROTOCOL_ ipProtocol
)
void Remove(
[InAttribute] int portNumber,
[InAttribute] NET_FW_IP_PROTOCOL_ ipProtocol
)
abstract Remove :
portNumber:int *
ipProtocol:NET_FW_IP_PROTOCOL_ -> unit
function Remove(
portNumber : int,
ipProtocol : NET_FW_IP_PROTOCOL_
)
Parameters
portNumber
Type: System.Int32The 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.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.