Share via


INetFwMgr.IsIcmpTypeAllowed Method

Checks whether the specified ICMP type is allowed.

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

Syntax

'Declaration
Sub IsIcmpTypeAllowed ( _
    ipVersion As NET_FW_IP_VERSION_, _
    localAddress As String, _
    type As Byte, _
    <OutAttribute> ByRef allowed As Object, _
    <OutAttribute> ByRef restricted As Object _
)
void IsIcmpTypeAllowed(
    NET_FW_IP_VERSION_ ipVersion,
    string localAddress,
    byte type,
    out Object allowed,
    out Object restricted
)
void IsIcmpTypeAllowed(
    [InAttribute] NET_FW_IP_VERSION_ ipVersion, 
    [InAttribute] String^ localAddress, 
    [InAttribute] unsigned char type, 
    [OutAttribute] Object^% allowed, 
    [OutAttribute] Object^% restricted
)
abstract IsIcmpTypeAllowed : 
        ipVersion:NET_FW_IP_VERSION_ * 
        localAddress:string * 
        type:byte * 
        allowed:Object byref * 
        restricted:Object byref -> unit
function IsIcmpTypeAllowed(
    ipVersion : NET_FW_IP_VERSION_, 
    localAddress : String, 
    type : byte, 
    allowed : Object, 
    restricted : Object
)

Parameters

  • 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.

.NET Framework Security

See Also

Reference

INetFwMgr Interface

Microsoft.TeamFoundation.Common Namespace