Detect when ethernet cable is plugged
问题 I'm trying to detect when an Ethernet cable is plugged-in or unplugged but i have some probleme and i don't know if i'm doing this good or not. I'm using NetworkChange.NetworkAddressChanged to detect when the network change and then NetworkInterface.GetAllNetworkInterfaces() for checking if Ethernet connexion is available or not with the property .OperationalStatus . But when i search for the Ethernet connexion in all the network interfaces, it return me what i'm looking for, but it always