File.CanExecute Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.