SocketsHttpHandler.KeepAlivePingPolicy 属性

定义

获取或设置保持活动状态 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。

适用于