Share via


FileLock.Position Method

Definition

Returns the position within the file of the first byte of the locked region.

[Android.Runtime.Register("position", "()J", "")]
public long Position ();
[<Android.Runtime.Register("position", "()J", "")>]
member this.Position : unit -> int64

Returns

The position

Attributes

Remarks

Returns the position within the file of the first byte of the locked region.

A locked region need not be contained within, or even overlap, the actual underlying file, so the value returned by this method may exceed the file's current size.

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

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