URLConnection.DoOutput Property

Definition

Returns the value of this URLConnection's doOutput flag. -or- Sets the value of the doOutput field for this URLConnection to the specified value.

public virtual bool DoOutput { [Android.Runtime.Register("getDoOutput", "()Z", "GetGetDoOutputHandler")] get; [Android.Runtime.Register("setDoOutput", "(Z)V", "GetSetDoOutput_ZHandler")] set; }
[<get: Android.Runtime.Register("getDoOutput", "()Z", "GetGetDoOutputHandler")>]
[<set: Android.Runtime.Register("setDoOutput", "(Z)V", "GetSetDoOutput_ZHandler")>]
member this.DoOutput : bool with get, set

Property Value

the value of this URLConnection's doOutput flag.

Attributes

Exceptions

if this method attempts to change the value after the connection has been already established.

Remarks

Property getter documentation:

Returns the value of this URLConnection's doOutput flag.

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

Property setter documentation:

Sets the value of the doOutput field for this URLConnection to the specified value.

A URL connection can be used for input and/or output. Set the DoOutput flag to true if you intend to use the URL connection for output, false if not. The default is false.

Java documentation for java.net.URLConnection.setDoOutput(boolean).

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