C# Класс WebApplication4.Models.Utilitarios2

Показать файл Открыть проект

Открытые методы

Метод Описание
GetAllDevicesOnLAN ( ) : PhysicalAddress>.Dictionary

Get the IP and MAC addresses of all known devices on the LAN

1) This table is not updated often - it can take some human-scale time to notice that a device has dropped off the network, or a new device has connected. 2) This discards non-local devices if they are found - these are multicast and can be discarded by IP address range.

GetIPAddress ( ) : IPAddress

Gets the IP address of the current PC

GetMacAddress ( ) : System.Net.NetworkInformation.PhysicalAddress

Gets the MAC address of the current PC.

IsMulticast ( IPAddress ip ) : bool

Returns true if the specified IP address is a multicast address

Приватные методы

Метод Описание
GetIpNetTable ( IntPtr pIpNetTable, [ pdwSize, bool bOrder ) : int

Описание методов

GetAllDevicesOnLAN() публичный статический Метод

Get the IP and MAC addresses of all known devices on the LAN
1) This table is not updated often - it can take some human-scale time to notice that a device has dropped off the network, or a new device has connected. 2) This discards non-local devices if they are found - these are multicast and can be discarded by IP address range.
public static GetAllDevicesOnLAN ( ) : PhysicalAddress>.Dictionary
Результат PhysicalAddress>.Dictionary

GetIPAddress() публичный статический Метод

Gets the IP address of the current PC
public static GetIPAddress ( ) : IPAddress
Результат System.Net.IPAddress

GetMacAddress() публичный статический Метод

Gets the MAC address of the current PC.
public static GetMacAddress ( ) : System.Net.NetworkInformation.PhysicalAddress
Результат System.Net.NetworkInformation.PhysicalAddress

IsMulticast() публичный статический Метод

Returns true if the specified IP address is a multicast address
public static IsMulticast ( IPAddress ip ) : bool
ip System.Net.IPAddress
Результат bool