Aracılığıyla paylaş


Files.GetLastModifiedTime(IPath, LinkOption[]) Method

Definition

Returns a file's last modified time.

[Android.Runtime.Register("getLastModifiedTime", "(Ljava/nio/file/Path;[Ljava/nio/file/LinkOption;)Ljava/nio/file/attribute/FileTime;", "", ApiSince=26)]
public static Java.Nio.FileNio.Attributes.FileTime? GetLastModifiedTime (Java.Nio.FileNio.IPath? path, params Java.Nio.FileNio.LinkOption[]? options);
[<Android.Runtime.Register("getLastModifiedTime", "(Ljava/nio/file/Path;[Ljava/nio/file/LinkOption;)Ljava/nio/file/attribute/FileTime;", "", ApiSince=26)>]
static member GetLastModifiedTime : Java.Nio.FileNio.IPath * Java.Nio.FileNio.LinkOption[] -> Java.Nio.FileNio.Attributes.FileTime

Parameters

path
IPath

the path to the file

options
LinkOption[]

options indicating how symbolic links are handled

Returns

a FileTime representing the time the file was last modified, or an implementation specific default when a time stamp to indicate the time of last modification is not supported by the file system

Attributes

Remarks

Java documentation for java.nio.file.Files.getLastModifiedTime(java.nio.file.Path, java.nio.file.LinkOption).

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