visual studio - Using c# property DHCPLeaseLifetime -
i looking way find out , use how lifetime left in dhcp lease , ms has documentation here, guess not sure how use property. haven't been able find much.
here's link
you might want consider the msdn example.
illustrates how lease lifetime.
the (condensed) version of example future reference:
each adapter in net.networkinformation.networkinterface.getallnetworkinterfaces() each uni in adapter.getipproperties().unicastaddresses console.writeline(" unicast address ......................... : {0}", uni.address) console.writeline(" dhcp leased life time ................ : {0}", uni.dhcpleaselifetime) next uni next adapter
Comments
Post a Comment