HubConnection.KeepAliveInterval 屬性

定義

取得或設定用戶端傳送 Ping 訊息的間隔。

public:
 property TimeSpan KeepAliveInterval { TimeSpan get(); void set(TimeSpan value); };
public TimeSpan KeepAliveInterval { get; set; }
member this.KeepAliveInterval : TimeSpan with get, set
Public Property KeepAliveInterval As TimeSpan

屬性值

備註

傳送任何訊息會將計時器重設為間隔的開頭。

適用於