This documentation is archived and is not being maintained.

INetFwMgr::IsIcmpTypeAllowed Method

Checks whether the specified ICMP type is allowed.

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

void IsIcmpTypeAllowed(
	[InAttribute] NET_FW_IP_VERSION_ ipVersion, 
	[InAttribute] String^ localAddress, 
	[InAttribute] unsigned char type, 
	[OutAttribute] Object^% allowed, 
	[OutAttribute] Object^% restricted
)

Parameters

ipVersion
Type: Microsoft.TeamFoundation.Common::NET_FW_IP_VERSION_

A NET_FW_IP_VERSION_ object indicating the version of internet protocol in use. This cannot be NET_FW_IP_VERSION_ANY.

localAddress
Type: System::String

Either a dotted-decimal IPv4 address or an IPv6 hex address specifying the local address of the traffic. Typically, this is the address passed to bind. If localAddress is NULL, the function determines whether the port is allowed for all interfaces.

type
Type: System::Byte

A byte indicating the ICMP type.

allowed
Type: System::Object%

Indicates by a value of VARIANT_TRUE or VARIANT_FALSE whether the port is allowed for at least some local interfaces and remote addresses.

restricted
Type: System::Object%

Indicates by a value of VARIANT_TRUE or VARIANT_FALSE whether some local interfaces or remote addresses are blocked for this port. For example, if the port is restricted to the local subnet only.

Show: