Udostępnij za pośrednictwem


Files.GetAttribute(IPath, String, LinkOption[]) Method

Definition

Reads the value of a file attribute.

[Android.Runtime.Register("getAttribute", "(Ljava/nio/file/Path;Ljava/lang/String;[Ljava/nio/file/LinkOption;)Ljava/lang/Object;", "", ApiSince=26)]
public static Java.Lang.Object? GetAttribute (Java.Nio.FileNio.IPath? path, string? attribute, params Java.Nio.FileNio.LinkOption[]? options);
[<Android.Runtime.Register("getAttribute", "(Ljava/nio/file/Path;Ljava/lang/String;[Ljava/nio/file/LinkOption;)Ljava/lang/Object;", "", ApiSince=26)>]
static member GetAttribute : Java.Nio.FileNio.IPath * string * Java.Nio.FileNio.LinkOption[] -> Java.Lang.Object

Parameters

path
IPath

the path to the file

attribute
String

the attribute to read

options
LinkOption[]

options indicating how symbolic links are handled

Returns

the attribute value

Attributes

Remarks

Java documentation for java.nio.file.Files.getAttribute(java.nio.file.Path, java.lang.String, 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