Sdílet prostřednictvím


FileSystemProvider.CreateSymbolicLink(IPath, IPath, IFileAttribute[]) Method

Definition

Creates a symbolic link to a target.

[Android.Runtime.Register("createSymbolicLink", "(Ljava/nio/file/Path;Ljava/nio/file/Path;[Ljava/nio/file/attribute/FileAttribute;)V", "GetCreateSymbolicLink_Ljava_nio_file_Path_Ljava_nio_file_Path_arrayLjava_nio_file_attribute_FileAttribute_Handler", ApiSince=26)]
public virtual void CreateSymbolicLink (Java.Nio.FileNio.IPath? link, Java.Nio.FileNio.IPath? target, params Java.Nio.FileNio.Attributes.IFileAttribute[]? attrs);
[<Android.Runtime.Register("createSymbolicLink", "(Ljava/nio/file/Path;Ljava/nio/file/Path;[Ljava/nio/file/attribute/FileAttribute;)V", "GetCreateSymbolicLink_Ljava_nio_file_Path_Ljava_nio_file_Path_arrayLjava_nio_file_attribute_FileAttribute_Handler", ApiSince=26)>]
abstract member CreateSymbolicLink : Java.Nio.FileNio.IPath * Java.Nio.FileNio.IPath * Java.Nio.FileNio.Attributes.IFileAttribute[] -> unit
override this.CreateSymbolicLink : Java.Nio.FileNio.IPath * Java.Nio.FileNio.IPath * Java.Nio.FileNio.Attributes.IFileAttribute[] -> unit

Parameters

link
IPath

the path of the symbolic link to create

target
IPath

the target of the symbolic link

attrs
IFileAttribute[]

the array of attributes to set atomically when creating the symbolic link

Attributes

Remarks

Java documentation for java.nio.file.spi.FileSystemProvider.createSymbolicLink(java.nio.file.Path, java.nio.file.Path, java.nio.file.attribute.FileAttribute).

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