다음을 통해 공유


IClientConnectionOperator.OpenConnection Method

Definition

Opens a connection to the given target host.

[Android.Runtime.Register("openConnection", "(Lorg/apache/http/conn/OperatedClientConnection;Lorg/apache/http/HttpHost;Ljava/net/InetAddress;Lorg/apache/http/protocol/HttpContext;Lorg/apache/http/params/HttpParams;)V", "GetOpenConnection_Lorg_apache_http_conn_OperatedClientConnection_Lorg_apache_http_HttpHost_Ljava_net_InetAddress_Lorg_apache_http_protocol_HttpContext_Lorg_apache_http_params_HttpParams_Handler:Org.Apache.Http.Conn.IClientConnectionOperatorInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void OpenConnection (Org.Apache.Http.Conn.IOperatedClientConnection? conn, Org.Apache.Http.HttpHost? target, Java.Net.InetAddress? local, Org.Apache.Http.Protocol.IHttpContext? context, Org.Apache.Http.Params.IHttpParams? params);
[<Android.Runtime.Register("openConnection", "(Lorg/apache/http/conn/OperatedClientConnection;Lorg/apache/http/HttpHost;Ljava/net/InetAddress;Lorg/apache/http/protocol/HttpContext;Lorg/apache/http/params/HttpParams;)V", "GetOpenConnection_Lorg_apache_http_conn_OperatedClientConnection_Lorg_apache_http_HttpHost_Ljava_net_InetAddress_Lorg_apache_http_protocol_HttpContext_Lorg_apache_http_params_HttpParams_Handler:Org.Apache.Http.Conn.IClientConnectionOperatorInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member OpenConnection : Org.Apache.Http.Conn.IOperatedClientConnection * Org.Apache.Http.HttpHost * Java.Net.InetAddress * Org.Apache.Http.Protocol.IHttpContext * Org.Apache.Http.Params.IHttpParams -> unit

Parameters

conn
IOperatedClientConnection

the connection to open

target
HttpHost

the target host to connect to

local
InetAddress

the local address to route from, or null for the default

context
IHttpContext

the context for the connection

params
IHttpParams

the parameters for the connection

Attributes

Exceptions

in case of a problem

Remarks

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