Sdílet prostřednictvím


URLConnection.DoInput Property

Definition

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

public virtual bool DoInput { [Android.Runtime.Register("getDoInput", "()Z", "GetGetDoInputHandler")] get; [Android.Runtime.Register("setDoInput", "(Z)V", "GetSetDoInput_ZHandler")] set; }
[<get: Android.Runtime.Register("getDoInput", "()Z", "GetGetDoInputHandler")>]
[<set: Android.Runtime.Register("setDoInput", "(Z)V", "GetSetDoInput_ZHandler")>]
member this.DoInput : bool with get, set

Property Value

the value of this URLConnection's doInput 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 doInput flag.

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

Property setter documentation:

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

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

Java documentation for java.net.URLConnection.setDoInput(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