Class DomainAndUri
Represents a published snapshot domain with its normalized uri.
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 SourceDomainAndUri(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 SourceUri
Gets the normalized uri of the domain, within the current context.
Declaration
public Uri Uri { get; }
Property Value
| Type | Description |
|---|---|
| Uri |
Methods
View SourceToString()
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| System.String |