Rediger

Del via


UnicastIPAddressInformation.AddressPreferredLifetime Property

Definition

Gets the number of seconds remaining during which this address is the preferred address.

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

Property Value

An Int64 value that specifies the number of seconds left for this address to remain preferred.

Attributes

Exceptions

This property is not valid on computers running operating systems earlier than Windows XP.

Remarks

Use the value returned by this property to determine how long the preferred address remains valid. Whenever possible, applications should use a preferred address. Use DuplicateAddressDetectionState to determine the preferred address.

Applies to