File.CanWrite Method

Definition

Tests whether the application can modify the file denoted by this abstract pathname.

[Android.Runtime.Register("canWrite", "()Z", "GetCanWriteHandler")]
public virtual bool CanWrite ();
[<Android.Runtime.Register("canWrite", "()Z", "GetCanWriteHandler")>]
abstract member CanWrite : unit -> bool
override this.CanWrite : unit -> bool

Returns

true if and only if the file system actually contains a file denoted by this abstract pathname <em>and</em> the application is allowed to write to the file; false otherwise.

Attributes

Remarks

Tests whether the application can modify the file denoted by this abstract pathname.

Java documentation for java.io.File.canWrite().

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