Java.Net.URL.OpenConnection Method
Returns a new connection to the resource referred to by this URL.

Syntax

[Android.Runtime.Register("openConnection", "(Ljava/net/Proxy;)Ljava/net/URLConnection;", "")]
public URLConnection OpenConnection (Proxy proxy)

Parameters

proxy
the proxy through which the connection will be established.

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.IO.IOExceptionif an I/O error occurs while opening the connection.
Java.Lang.IllegalArgumentExceptionif the argument proxy is null or of is an invalid type.
Java.Lang.UnsupportedOperationExceptionif the protocol handler does not support opening connections through proxies.

Remarks

Returns a new connection to the resource referred to by this URL.

[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