Search Results for

    Show / Hide Table of Contents

    Class PathValidator

    Static class containing path validation methods.

    Inheritance
    object
    PathValidator
    Namespace: Evergine.Common.IO
    Assembly: Evergine.Common.dll
    Syntax
    public static class PathValidator

    Methods

    EnsureCorrectFileSystemName(string)

    Ensures the correct file system name.

    Declaration
    public static void EnsureCorrectFileSystemName(string filename)
    Parameters
    Type Name Description
    string filename

    The filename.

    Remarks

    Throws an exception if filename is not a correct file system path.

    Exceptions
    Type Condition
    ArgumentNullException

    filename is null.

    ArgumentException

    filename is a zero-length string, contains only white space, or contains invalid characters as defined in GetInvalidPathChars().

    EnsureCorrectFileSystemPath(string)

    Ensures the correct file system path.

    Declaration
    public static void EnsureCorrectFileSystemPath(string path)
    Parameters
    Type Name Description
    string path

    The path to the file or directory.

    Remarks

    Throws an exception if path is not a correct file system path.

    Exceptions
    Type Condition
    ArgumentNullException

    path is null.

    ArgumentException

    path is a zero-length string, contains only white space, or contains invalid characters as defined in GetInvalidPathChars().

    In this article
    Back to top
    Generated by DocFX