Search Results for

    Show / Hide Table of Contents

    Class PathDiagnostics

    Shows where how many segments of a faulty path are valid.

    Inheritance
    Object
    PathDiagnostics
    Inherited Members
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Object.ToString()
    Namespace: Acoustics.Shared
    Assembly: Acoustics.Shared.dll
    Syntax
    public static class PathDiagnostics

    Methods

    | Improve this Doc View Source

    PathExistsOrDiff(String, out PathDiagnostics.PathDiffReport, String)

    Checks if a path exists. If it does not it generates a report detailing what aspects of the path do exist and suggests possible alternatives.

    Declaration
    public static bool PathExistsOrDiff(string path, out PathDiagnostics.PathDiffReport report, string root = null)
    Parameters
    Type Name Description
    String path

    The path to check.

    PathDiagnostics.PathDiffReport report

    A report that details errors found in the path if the path does not exist.

    String root

    An optional root to apply to a relative path. Defaults to CurrentDirectory is root is null.

    Returns
    Type Description
    Boolean

    True if the path exists.

    Exceptions
    Type Condition
    ArgumentException

    If the supplied root is not itself rooted.

    • Improve this Doc
    • View Source
    In This Article
    Generated by DocFX AP docs version: 21.7.0.4-master-e26127a50d7bd7472d47288f10e61014fb981f7f-DIRTY-CI:144 Back to top