File System File System
File System File System
DocFX + Singulink = ♥

Search Results for

    Method TryParse

    TryParse(ReadOnlySpan<char>, out IFilePath?)

    Attempts to parse an absolute or relative file path using the NoUnfriendlyNames option and the current platform's format.

    Declaration
    public static bool TryParse(ReadOnlySpan<char> path, out IFilePath? result)
    Parameters
    Type Name Description
    ReadOnlySpan<char> path

    A file path.

    IFilePath result

    When this method returns, contains the parsed path if parsing succeeded, otherwise null.

    Returns
    Type Description
    bool

    true if the path was parsed successfully, otherwise false.

    TryParse(ReadOnlySpan<char>, PathFormat, out IFilePath?)

    Attempts to parse an absolute or relative file path using the specified format and the NoUnfriendlyNames option.

    Declaration
    public static bool TryParse(ReadOnlySpan<char> path, PathFormat format, out IFilePath? result)
    Parameters
    Type Name Description
    ReadOnlySpan<char> path

    A file path.

    PathFormat format

    The path's format.

    IFilePath result

    When this method returns, contains the parsed path if parsing succeeded, otherwise null.

    Returns
    Type Description
    bool

    true if the path was parsed successfully, otherwise false.

    TryParse(ReadOnlySpan<char>, PathOptions, out IFilePath?)

    Attempts to parse an absolute or relative file path using the specified options and the current platform's format.

    Declaration
    public static bool TryParse(ReadOnlySpan<char> path, PathOptions options, out IFilePath? result)
    Parameters
    Type Name Description
    ReadOnlySpan<char> path

    A file path.

    PathOptions options

    Specifies the path parsing options.

    IFilePath result

    When this method returns, contains the parsed path if parsing succeeded, otherwise null.

    Returns
    Type Description
    bool

    true if the path was parsed successfully, otherwise false.

    TryParse(ReadOnlySpan<char>, PathFormat, PathOptions, out IFilePath?)

    Attempts to parse an absolute or relative file path using the specified format and options.

    Declaration
    public static bool TryParse(ReadOnlySpan<char> path, PathFormat format, PathOptions options, out IFilePath? result)
    Parameters
    Type Name Description
    ReadOnlySpan<char> path

    A file path.

    PathFormat format

    The path's format.

    PathOptions options

    Specifies the path parsing options.

    IFilePath result

    When this method returns, contains the parsed path if parsing succeeded, otherwise null.

    Returns
    Type Description
    bool

    true if the path was parsed successfully, otherwise false.

    © Singulink. All rights reserved.