There is an unsaved comment in progress. You will lose your changes if you continue. Are you sure you want to reopen the work item?
No way to know when a DHCP lease has expired, or will expire
Currently, the NetworkInterface class contains methods to enable DHCP, disable DHCP (by setting a static IP), release a DHCP lease, and renew a DHCP lease. There is no way, however, to obtain the duration of the lease so the application can renew the lease when it expires. This could be accomplished with a property on the NetworkInterface class (DhcpLeaseDuration, for example) or by having EnableDhcp() return a lease duration.