GetIPv4Properties() public abstract method

public abstract GetIPv4Properties ( ) : System.Net.NetworkInformation.IPv4InterfaceProperties
return System.Net.NetworkInformation.IPv4InterfaceProperties
        private static bool HasDHCPChanged(IPInterfaceProperties oldProperties, IPInterfaceProperties newProperties)
        {
            if (oldProperties.GetIPv4Properties().IsDhcpEnabled != newProperties.GetIPv4Properties().IsDhcpEnabled)
                return true;

            if (oldProperties.DhcpServerAddresses.Count != newProperties.DhcpServerAddresses.Count)
                return true;

            for (int i = 0; i < oldProperties.DhcpServerAddresses.Count; i++)
            {
                IPAddress oldDHCP = oldProperties.DhcpServerAddresses[i];
                IPAddress newDHCP = newProperties.DhcpServerAddresses[i];

                if (!oldDHCP.Equals(newDHCP))
                    return true;
            }

            return false;
        }