Share via


MulticastIPAddressInformation.AddressPreferredLifetime 屬性

定義

取得這個位址仍為慣用位址的剩餘秒數。

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

屬性值

Int64 值,指定這個位址仍為慣用位址的剩餘秒數。

屬性

例外狀況

這個屬性不適用於執行 Windows XP 以前版本作業系統的電腦。

備註

使用這個屬性所傳回的值,判斷慣用位址維持有效時間長度。 可能的話,應用程式應該使用慣用的位址。 使用 DuplicateAddressDetectionState 來判斷慣用的位址。

適用於