Search Results for

    Show / Hide Table of Contents
    View Source

    Class WebPath

    Provides utilities for manipulating web paths.

    Inheritance
    object
    Namespace: Umbraco.Cms.Core.Routing
    Assembly: Umbraco.Core.dll
    Syntax
    public class WebPath

    Constructors

    View Source

    WebPath()

    Declaration
    public WebPath()

    Fields

    View Source

    PathSeparator

    The path separator character.

    Declaration
    public const char PathSeparator = '/'
    Field Value
    Type Description
    char

    Methods

    View Source

    Combine(params string[]?)

    Combines multiple path segments into a single path.

    Declaration
    public static string Combine(params string[]? paths)
    Parameters
    Type Name Description
    string[] paths

    The path segments to combine.

    Returns
    Type Description
    string

    The combined path.

    Exceptions
    Type Condition
    ArgumentNullException

    Thrown when paths is null.

    View Source

    IsWellFormedWebPath(string?, UriKind)

    Determines whether the provided web path is well-formed according to the specified UriKind.

    Declaration
    public static bool IsWellFormedWebPath(string? webPath, UriKind uriKind)
    Parameters
    Type Name Description
    string webPath

    The web path to check. This can be null.

    UriKind uriKind

    The kind of Uri (Absolute, Relative, or RelativeOrAbsolute).

    Returns
    Type Description
    bool

    true if webPath is well-formed; otherwise, false.

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