System.Net.NetworkInformation.MulticastIPAddressInformation.DhcpLeaseLifetime Property

Specifies the amount of time remaining on the Dynamic Host Configuration Protocol (DHCP) lease for this IP address.

Syntax

public abstract long DhcpLeaseLifetime { get; }

Value

Documentation for this section has not yet been entered.

Remarks

Dynamic Host Configuration Protocol (DHCP) allows a computer to obtain a network address from a DHCP server, as opposed to using a static (fixed) network address. The DHCP server does not permanently assign addresses; instead, it "leases" one of a number of available addresses to the computer. Within a specified amount of time, known as the lease lifetime for the address, the computer releases the address, leaving the DHCP server free to assign it to a different computer.

This property returns the number of seconds left in the lease lifetime for the IP address identified in the IPAddressInformation.Address property. Note that the computer can send requests to the DHCP server to extend its lease, so the lease lifetime can increase over time.

Requirements

Namespace: System.Net.NetworkInformation
Assembly: System (in System.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0