Udostępnij za pośrednictwem


FileSystemProvider.CreateLink(IPath, IPath) Method

Definition

Creates a new link (directory entry) for an existing file.

[Android.Runtime.Register("createLink", "(Ljava/nio/file/Path;Ljava/nio/file/Path;)V", "GetCreateLink_Ljava_nio_file_Path_Ljava_nio_file_Path_Handler", ApiSince=26)]
public virtual void CreateLink (Java.Nio.FileNio.IPath? link, Java.Nio.FileNio.IPath? existing);
[<Android.Runtime.Register("createLink", "(Ljava/nio/file/Path;Ljava/nio/file/Path;)V", "GetCreateLink_Ljava_nio_file_Path_Ljava_nio_file_Path_Handler", ApiSince=26)>]
abstract member CreateLink : Java.Nio.FileNio.IPath * Java.Nio.FileNio.IPath -> unit
override this.CreateLink : Java.Nio.FileNio.IPath * Java.Nio.FileNio.IPath -> unit

Parameters

link
IPath

the link (directory entry) to create

existing
IPath

a path to an existing file

Attributes

Remarks

Creates a new link (directory entry) for an existing file. This method works in exactly the manner specified by the Files#createLink method.

The default implementation of this method throws UnsupportedOperationException.

Java documentation for java.nio.file.spi.FileSystemProvider.createLink(java.nio.file.Path, java.nio.file.Path).

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