Search Results for

    Show / Hide Table of Contents
    View Source

    Class IOHelperWindows

    Provides IO helper implementations for Windows operating systems.

    Inheritance
    object
    IOHelper
    Namespace: Umbraco.Cms.Core.IO
    Assembly: Umbraco.Core.dll
    Syntax
    public class IOHelperWindows : IOHelper, IIOHelper

    Constructors

    View Source

    IOHelperWindows(IHostingEnvironment)

    Initializes a new instance of the IOHelperWindows class.

    Declaration
    public IOHelperWindows(IHostingEnvironment hostingEnvironment)
    Parameters
    Type Name Description
    IHostingEnvironment hostingEnvironment

    The hosting environment.

    Methods

    View Source

    PathStartsWith(string, string, params char[])

    Determines whether a path starts with the specified root path.

    Declaration
    public override bool PathStartsWith(string path, string root, params char[] separators)
    Parameters
    Type Name Description
    string path

    The path to check.

    string root

    The root path to compare against.

    char[] separators

    The directory separator characters to use.

    Returns
    Type Description
    bool

    true if the path starts with the root; otherwise, false.

    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX