Breyta

Deila með


FileSystemInfo.CreateAsSymbolicLink(String) Method

Definition

Creates a symbolic link located in FullName that points to the specified pathToTarget.

public:
 void CreateAsSymbolicLink(System::String ^ pathToTarget);
public void CreateAsSymbolicLink (string pathToTarget);
member this.CreateAsSymbolicLink : string -> unit
Public Sub CreateAsSymbolicLink (pathToTarget As String)

Parameters

pathToTarget
String

The path of the symbolic link target.

Exceptions

pathToTarget is null.

pathToTarget is empty.

-or-

pathToTarget contains invalid path characters.

A file or directory already exists in the location of FullName.

-or-

An I/O error occurred.

Applies to

See also