Java.Net.HttpURLConnection.Disconnect Method
Releases this connection so that its resources may be either reused or closed.

Syntax

[Android.Runtime.Register("disconnect", "()V", "GetDisconnectHandler")]
public abstract void Disconnect ()

Remarks

Releases this connection so that its resources may be either reused or closed.

Unlike other Java implementations, this will not necessarily close socket connections that can be reused. You can disable all connection reuse by setting the http.keepAlive system property to false before issuing any HTTP requests.

[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