IpHlpApiFlushIpNetTable2 Method
Flushes the IP neighbor table on the local computer.
Namespace: DevCase.Win32.NativeMethodsAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("IpHlpApi.dll", ExactSpelling = true)]
public static Win32ErrorCode FlushIpNetTable2(
AddressFamily family,
uint interfaceIndex
)
<DllImportAttribute("IpHlpApi.dll", ExactSpelling := true>]
Public Shared Function FlushIpNetTable2 (
family As AddressFamily,
interfaceIndex As UInteger
) As Win32ErrorCode
Dim family As AddressFamily
Dim interfaceIndex As UInteger
Dim returnValue As Win32ErrorCode
returnValue = IpHlpApi.FlushIpNetTable2(family,
interfaceIndex)
public:
[DllImportAttribute(L"IpHlpApi.dll", ExactSpelling = true)]
static Win32ErrorCode FlushIpNetTable2(
AddressFamily family,
unsigned int interfaceIndex
)
[<DllImportAttribute("IpHlpApi.dll", ExactSpelling = true)>]
static member FlushIpNetTable2 :
family : AddressFamily *
interfaceIndex : uint32 -> Win32ErrorCode
No code example is currently available or this language may not be supported.
- family AddressFamily
-
The address family to flush.
The values currently supported are Unspecified,
InterNetwork, and InterNetworkV6.
- interfaceIndex UInt32
-
The interface index.
If the index is specified, flush the neighbor IP address entries on a specific interface,
otherwise flush the neighbor IP address entries on all the interfaces.
To ignore the interface, set this parameter to zero.
Win32ErrorCode
If this function succeeds, it returns
ERROR_SUCCESS.
Otherwise, it returns an
Win32ErrorCode error code.