Search Results for

    Show / Hide Table of Contents
    View Source

    Class DomainAndUri

    Represents a published snapshot domain with its normalized uri.

    Inheritance
    System.Object
    Domain
    Namespace: Umbraco.Cms.Core.Routing
    Assembly: Umbraco.Core.dll
    Syntax
    public class DomainAndUri : Domain
    Remarks

    In Umbraco it is valid to create domains with name such as example.com, https://www.example.com , example.com/foo/.

    The normalized uri of a domain begins with a scheme and ends with no slash, eg http://example.com/, https://www.example.com/, http://example.com/foo/.

    Constructors

    View Source

    DomainAndUri(Domain, Uri)

    Initializes a new instance of the DomainAndUri class.

    Declaration
    public DomainAndUri(Domain domain, Uri currentUri)
    Parameters
    Type Name Description
    Domain domain

    The original domain.

    Uri currentUri

    The context current Uri.

    Properties

    View Source

    Uri

    Gets the normalized uri of the domain, within the current context.

    Declaration
    public Uri Uri { get; }
    Property Value
    Type Description
    Uri

    Methods

    View Source

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String
    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • DomainAndUri(Domain, Uri)
    • Properties
      • Uri
    • Methods
      • ToString()
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX