Sdílet prostřednictvím


FileLock.Release Method

Definition

Releases this lock.

[Android.Runtime.Register("release", "()V", "GetReleaseHandler")]
public abstract void Release ();
[<Android.Runtime.Register("release", "()V", "GetReleaseHandler")>]
abstract member Release : unit -> unit
Attributes

Exceptions

if the channel is already closed when an attempt to release the lock is made.

if another I/O error occurs.

Remarks

Releases this lock.

If this lock object is valid then invoking this method releases the lock and renders the object invalid. If this lock object is invalid then invoking this method has no effect.

Java documentation for java.nio.channels.FileLock.release().

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