Freigeben über


File.CanExecute Method

Definition

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

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

Returns

true if and only if the abstract pathname exists <em>and</em> the application is allowed to execute the file

Attributes

Remarks

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

Added in 1.6.

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

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