URLConnection Constructors

Definition

Overloads

URLConnection(URL)

Constructs a URL connection to the specified URL.

URLConnection(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

URLConnection(URL)

Constructs a URL connection to the specified URL.

[Android.Runtime.Register(".ctor", "(Ljava/net/URL;)V", "")]
protected URLConnection (Java.Net.URL? url);
[<Android.Runtime.Register(".ctor", "(Ljava/net/URL;)V", "")>]
new Java.Net.URLConnection : Java.Net.URL -> Java.Net.URLConnection

Parameters

url
URL

the specified URL.

Attributes

Remarks

Constructs a URL connection to the specified URL. A connection to the object referenced by the URL is not created.

Java documentation for java.net.URLConnection.URLConnection(java.net.URL).

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

URLConnection(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

protected URLConnection (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Java.Net.URLConnection : nativeint * Android.Runtime.JniHandleOwnership -> Java.Net.URLConnection

Parameters

javaReference
IntPtr

nativeint

A IntPtrcontaining a Java Native Interface (JNI) object reference.

transfer
JniHandleOwnership

A JniHandleOwnershipindicating how to handle javaReference

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