Android.Net.Network.OpenConnection Method
Opens the specified Java.Net.URL on this Network, such that all traffic will be sent on this Network.

Syntax

[Android.Runtime.Register("openConnection", "(Ljava/net/URL;)Ljava/net/URLConnection;", "GetOpenConnection_Ljava_net_URL_Handler")]
public virtual Java.Net.URLConnection OpenConnection (Java.Net.URL url)

See Also

Java.Net.URL.OpenConnection

Parameters

url
Documentation for this section has not yet been entered.

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Net.MalformedURLExceptionif the URL protocol is not HTTP or HTTPS.
Java.IO.IOExceptionif an error occurs while opening the connection.

Remarks

Opens the specified Java.Net.URL on this Network, such that all traffic will be sent on this Network. The URL protocol must be HTTP or HTTPS.

[Android Documentation]

Requirements

Namespace: Android.Net
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0