共用方式為


SocketsHttpHandler.KeepAlivePingPolicy 屬性

定義

取得或設定 keep alive ping 行為。

public:
 property System::Net::Http::HttpKeepAlivePingPolicy KeepAlivePingPolicy { System::Net::Http::HttpKeepAlivePingPolicy get(); void set(System::Net::Http::HttpKeepAlivePingPolicy value); };
public System.Net.Http.HttpKeepAlivePingPolicy KeepAlivePingPolicy { get; set; }
member this.KeepAlivePingPolicy : System.Net.Http.HttpKeepAlivePingPolicy with get, set
Public Property KeepAlivePingPolicy As HttpKeepAlivePingPolicy

屬性值

保持運作的 Ping 行為。

備註

當閑置期間超過設定 KeepAlivePingDelay 的值時,會傳送保持運作 Ping。

適用於