File.SetExecutable File.SetExecutable Method

Definition

Overloads

SetExecutable(Boolean) SetExecutable(Boolean)

Equivalent to setExecutable(executable, true).

SetExecutable(Boolean, Boolean) SetExecutable(Boolean, Boolean)

Manipulates the execute permissions for the abstract path designated by this file.

SetExecutable(Boolean) SetExecutable(Boolean)

Equivalent to setExecutable(executable, true).

[Android.Runtime.Register("setExecutable", "(Z)Z", "GetSetExecutable_ZHandler", ApiSince=9)]
public virtual bool SetExecutable (bool executable);
abstract member SetExecutable : bool -> bool
override this.SetExecutable : bool -> bool

Parameters

executable
Boolean Boolean

Returns

Remarks

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.

SetExecutable(Boolean, Boolean) SetExecutable(Boolean, Boolean)

Manipulates the execute permissions for the abstract path designated by this file.

[Android.Runtime.Register("setExecutable", "(ZZ)Z", "GetSetExecutable_ZZHandler", ApiSince=9)]
public virtual bool SetExecutable (bool executable, bool ownerOnly);
abstract member SetExecutable : bool * bool -> bool
override this.SetExecutable : bool * bool -> bool

Parameters

executable
Boolean Boolean

To allow execute permission if true, otherwise disallow

ownerOnly
Boolean Boolean

To manipulate execute permission only for owner if true, otherwise for everyone. The manipulation will apply to everyone regardless of this value if the underlying system does not distinguish owner and other users.

Returns

Remarks

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