lib/symboliclinksupport/SymbolicLinkSupport/DirectoryInfoExtensions.cs
/// <summary>
/// Returns the full path to the target of this symbolic link.
/// </summary>
/// <param name="directoryInfo">The symbolic link in question.</param>
/// <returns>The path to the target of the symbolic link.</returns>
/// <exception cref="System.ArgumentException">If the directory in question is not a symbolic link.</exception>
Returns the full path to the target of this symbolic link.
Returns the full path to the target of this symbolic link .
public static string GetSymbolicLinkTarget(this DirectoryInfo directoryInfo)
        {
            if (!directoryInfo.IsSymbolicLink())
                throw new ArgumentException("Specified directory is not a symbolic link.");
            return SymbolicLink.GetTarget(directoryInfo.FullName);
        }
public static string GetSymbolicLinkTarget ( this DirectoryInfo directoryInfo ) { if ( ! directoryInfo . IsSymbolicLink ( ) ) throw new ArgumentException ( " " ) ; return SymbolicLink . GetTarget ( directoryInfo . FullName ) ; }
Returns the full path to the target of this symbolic link.
Returns the full path to the target of this symbolic link .
The path to the target of the symbolic link.
The path to the target of the symbolic link .
If the directory in question is not a symbolic link.
If the directory in question is not a symbolic link .
DirectoryInfo
this
directoryInfo
The symbolic link in question.
The symbolic link in question .