語言

UdpBindingElement.TimeToLive 屬性

定義

取得或設定 UDP 綁定元素的存活時間。

public:
 property int TimeToLive { int get(); void set(int value); };
[System.Configuration.ConfigurationProperty("timeToLive", DefaultValue=1)]
[System.Configuration.IntegerValidator(MaxValue=255, MinValue=0)]
public int TimeToLive { get; set; }
[<System.Configuration.ConfigurationProperty("timeToLive", DefaultValue=1)>]
[<System.Configuration.IntegerValidator(MaxValue=255, MinValue=0)>]
member this.TimeToLive : int with get, set
Public Property TimeToLive As Integer

屬性值

活著的時間就是為了 UDP 綁定元素。

屬性

適用於