Java.Net.URLStreamHandler.OpenConnection Method
Establishes a new connection to the resource specified by the URL u using the given proxy.

Syntax

[Android.Runtime.Register("openConnection", "(Ljava/net/URL;Ljava/net/Proxy;)Ljava/net/URLConnection;", "GetOpenConnection_Ljava_net_URL_Ljava_net_Proxy_Handler")]
protected virtual URLConnection OpenConnection (URL u, Proxy proxy)

Parameters

u
the URL to the resource where a connection has to be opened.
proxy
the proxy that is used to make the connection.

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.IO.IOExceptionif an I/O error occurs during opening the connection.
Java.Lang.IllegalArgumentExceptionif any argument is null or the type of proxy is wrong.
Java.Lang.UnsupportedOperationExceptionif the protocol handler doesn't support this method.

Remarks

Establishes a new connection to the resource specified by the URL u using the given proxy. Since different protocols also have unique ways of connecting, it must be overwritten by the subclass.

[Android Documentation]

Requirements

Namespace: Java.Net
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1