语言

HttpConnectionParams.GetConnectionTimeout(IHttpParams) 方法

定义

注意

deprecated

返回超时,直到连接被取消。

[Android.Runtime.Register("getConnectionTimeout", "(Lorg/apache/http/params/HttpParams;)I", "")]
[System.Obsolete("deprecated")]
public static int GetConnectionTimeout(Org.Apache.Http.Params.IHttpParams? params);
[<Android.Runtime.Register("getConnectionTimeout", "(Lorg/apache/http/params/HttpParams;)I", "")>]
[<System.Obsolete("deprecated")>]
static member GetConnectionTimeout : Org.Apache.Http.Params.IHttpParams -> int

参数

params
IHttpParams

要读取的参数集合。 不得为 null。

返回

超时(以毫秒为单位)。

特性

注解

返回超时,直到连接被取消。 值为零表示不使用超时。 默认值为 0。

Java文档org.apache.http.params.HttpConnectionParams.getConnectionTimeout(org.apache.http.params.HttpParams)。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于