File.CanRead Method

Definition

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

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

Returns

true if and only if the file specified by this abstract pathname exists <em>and</em> can be read by the application; false otherwise

Attributes

Remarks

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

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

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