Export (0) Print
Expand All

MulticastIPAddressInformation.DhcpLeaseLifetime Property

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

Namespace:  System.Net.NetworkInformation
Assemblies:   System.Net.NetworkInformation (in System.Net.NetworkInformation.dll)
  System (in System.dll)

public abstract long DhcpLeaseLifetime { get; }

Property Value

Type: System.Int64
An Int64 value that contains the number of seconds remaining before the computer must release the IPAddress instance.

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 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.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

© 2014 Microsoft