MulticastIPAddressInformation.DhcpLeaseLifetime 屬性

定義

指定這個 IP 位址之動態主機設定通訊協定 (DHCP) 使用期 (Lease) 的剩餘時間長度。

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 伺服器以延長其租用,因此租用存留期可能會隨著時間增加。

適用於