File.ResolveLinkTarget(String, Boolean) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the target of the specified file link.
public:
static System::IO::FileSystemInfo ^ ResolveLinkTarget(System::String ^ linkPath, bool returnFinalTarget);
public static System.IO.FileSystemInfo? ResolveLinkTarget (string linkPath, bool returnFinalTarget);
static member ResolveLinkTarget : string * bool -> System.IO.FileSystemInfo
Public Shared Function ResolveLinkTarget (linkPath As String, returnFinalTarget As Boolean) As FileSystemInfo
Parameters
- linkPath
- String
The path of the file link.
- returnFinalTarget
- Boolean
true
to follow links to the final target; false
to return the immediate next link.
Returns
A FileInfo instance if linkPath
exists, independently if the target exists or not. null
if linkPath
is not a link.
Exceptions
Remarks
When returnFinalTarget
is true
, the maximum number of symbolic links that are followed are 40 on Unix and 63 on Windows.
Symbolic links and junctions are the types of links this API can resolve.
Applies to
See also
Σχόλια
https://aka.ms/ContentUserFeedback.
Σύντομα διαθέσιμα: Καθ' όλη τη διάρκεια του 2024 θα καταργήσουμε σταδιακά τα ζητήματα GitHub ως μηχανισμό ανάδρασης για το περιεχόμενο και θα το αντικαταστήσουμε με ένα νέο σύστημα ανάδρασης. Για περισσότερες πληροφορίες, ανατρέξτε στο θέμα:Υποβολή και προβολή σχολίων για