Partager via


FileSystemProvider.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;)V", "GetSetAttribute_Ljava_nio_file_Path_Ljava_lang_String_Ljava_lang_Object_arrayLjava_nio_file_LinkOption_Handler", ApiSince=26)]
public abstract void 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;)V", "GetSetAttribute_Ljava_nio_file_Path_Ljava_lang_String_Ljava_lang_Object_arrayLjava_nio_file_LinkOption_Handler", ApiSince=26)>]
abstract member SetAttribute : Java.Nio.FileNio.IPath * string * Java.Lang.Object * Java.Nio.FileNio.LinkOption[] -> unit

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

Attributes

Remarks

Java documentation for java.nio.file.spi.FileSystemProvider.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