HttpConnectionParams.SetConnectionTimeout(IHttpParams, Int32) Method

Definition

Sets the timeout until a connection is etablished.

[Android.Runtime.Register("setConnectionTimeout", "(Lorg/apache/http/params/HttpParams;I)V", "")]
public static void SetConnectionTimeout (Org.Apache.Http.Params.IHttpParams? params, int timeout);
[<Android.Runtime.Register("setConnectionTimeout", "(Lorg/apache/http/params/HttpParams;I)V", "")>]
static member SetConnectionTimeout : Org.Apache.Http.Params.IHttpParams * int -> unit

Parameters

params
IHttpParams
timeout
Int32

Timeout in milliseconds.

Attributes

Remarks

Sets the timeout until a connection is etablished. A value of zero means the timeout is not used. The default value is zero.

Java documentation for org.apache.http.params.HttpConnectionParams.setConnectionTimeout(org.apache.http.params.HttpParams, int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to