FileSystemInfo.LinkTarget Property

Definition

Gets the target path of the link located in FullName, or null if this FileSystemInfo instance doesn't represent a link.

C#
public string? LinkTarget { get; }

Property Value

The target path of the link located in FullName, or null if this FileSystemInfo instance doesn't represent a link.

Remarks

Symbolic links and junctions are the types of links this API can resolve.

Applies to

Product Versions
.NET 6, 7, 8, 9, 10

See also