Share via


Files.SetAttribute(IPath, String, Object, LinkOption[]) Method

Definition

Sets the value of a file attribute.

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

Parameters

path
IPath

the path to the file

attribute
String

the attribute to set

value
Object

the attribute value

options
LinkOption[]

options indicating how symbolic links are handled

Returns

the path parameter

Attributes

Remarks

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