Search Results for

    Show / Hide Table of Contents

    Class PathUtil

    Summary description for PathUtil.

    Inheritance
    System.Object
    PathUtil
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: ImageVault.Common.Lib.IO
    Assembly: ImageVault.Common.dll
    Syntax
    public static class PathUtil

    Methods

    EnsureExtension(String, String)

    Replaces the supplied path file extension with the one supplied

    Declaration
    public static string EnsureExtension(string path, string extension)
    Parameters
    Type Name Description
    System.String path
    System.String extension
    Returns
    Type Description
    System.String

    IsLocal(String)

    Checks whether the given path is local (on this machine) or not.

    Declaration
    public static bool IsLocal(string path)
    Parameters
    Type Name Description
    System.String path

    The path to examine

    Returns
    Type Description
    System.Boolean

    True if it is local, otherwise false.

    MakeValidFileName(String)

    Replaces all illegal filename characters with a _ character

    Declaration
    public static string MakeValidFileName(string filename)
    Parameters
    Type Name Description
    System.String filename
    Returns
    Type Description
    System.String
    In This Article
    Back to top (c) Meriworks 2002-2022