語言

HttpService.SetConnReuseStrategy(IConnectionReuseStrategy) 方法

定義

設定策略,決定回應後連線是否保持開啟。

[Android.Runtime.Register("setConnReuseStrategy", "(Lorg/apache/http/ConnectionReuseStrategy;)V", "GetSetConnReuseStrategy_Lorg_apache_http_ConnectionReuseStrategy_Handler")]
public virtual void SetConnReuseStrategy(Org.Apache.Http.IConnectionReuseStrategy? connStrategy);
[<Android.Runtime.Register("setConnReuseStrategy", "(Lorg/apache/http/ConnectionReuseStrategy;)V", "GetSetConnReuseStrategy_Lorg_apache_http_ConnectionReuseStrategy_Handler")>]
abstract member SetConnReuseStrategy : Org.Apache.Http.IConnectionReuseStrategy -> unit
override this.SetConnReuseStrategy : Org.Apache.Http.IConnectionReuseStrategy -> unit

參數

connStrategy
IConnectionReuseStrategy

決定是否在回應後保持連線的策略。 這絕對不是 null。

屬性

備註

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於