MulticastIPAddressInformation.DhcpLeaseLifetime 属性

定义

指定此 IP 地址的动态主机配置协议 (DHCP) 租约的剩余时间量。

public:
 abstract property long DhcpLeaseLifetime { long get(); };
public abstract long DhcpLeaseLifetime { get; }
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public abstract long DhcpLeaseLifetime { get; }
member this.DhcpLeaseLifetime : int64
[<System.Runtime.Versioning.SupportedOSPlatform("windows")>]
member this.DhcpLeaseLifetime : int64
Public MustOverride ReadOnly Property DhcpLeaseLifetime As Long

属性值

一个 Int64 值,包含计算机在必须释放 IPAddress 实例之前剩余的秒数。

属性

注解

动态主机配置协议 (DHCP) 允许计算机从 DHCP 服务器获取网络地址,而不是使用静态 (固定) 网络地址。 DHCP 服务器不会永久分配地址;相反,它将多个可用地址之一“租用”到计算机。 在指定的时间内(称为地址的租用生存期)内,计算机释放地址,使 DHCP 服务器可以将其分配给其他计算机。

此属性返回在属性中标识 Address 的 IP 地址的租用生存期内剩余的秒数。 请注意,计算机可以向 DHCP 服务器发送请求以延长其租约,因此租约生存期可能会随着时间推移而增加。

适用于