Class WebsiteChannelLanguagePrefixDomain
Domain of a website channel routing by a language prefix in the URL path.
public sealed record WebsiteChannelLanguagePrefixDomain
- Inheritance
-
objectWebsiteChannelLanguagePrefixDomain
- Extension Methods
Remarks
A derived view of the channel's configured and stored domains, never persisted in this form. Domains carry no URL scheme and may
include a port or a path, for example mysite.com or localhost:5000/path.
Constructors
WebsiteChannelLanguagePrefixDomain(string, bool)
Domain of a website channel routing by a language prefix in the URL path.
public WebsiteChannelLanguagePrefixDomain(string Domain, bool IsAlias)
Parameters
DomainstringThe domain, from DomainOverrides or from WebsiteChannelDomain.
IsAliasboolWhether the domain is an alternative one. The canonical domain is the one CMS.Websites.Internal.IWebsiteChannelDomainProvider.GetDomain(int, System.Threading.CancellationToken) resolves; a channel has at most one.
Remarks
A derived view of the channel's configured and stored domains, never persisted in this form. Domains carry no URL scheme and may
include a port or a path, for example mysite.com or localhost:5000/path.
Properties
Domain
The domain, from DomainOverrides or from WebsiteChannelDomain.
public string Domain { get; init; }
Property Value
- string
IsAlias
Whether the domain is an alternative one. The canonical domain is the one CMS.Websites.Internal.IWebsiteChannelDomainProvider.GetDomain(int, System.Threading.CancellationToken) resolves; a channel has at most one.
public bool IsAlias { get; init; }
Property Value
- bool
Methods
Deconstruct(out string, out bool)
public void Deconstruct(out string Domain, out bool IsAlias)
Parameters
DomainstringIsAliasbool
Equals(WebsiteChannelLanguagePrefixDomain?)
public bool Equals(WebsiteChannelLanguagePrefixDomain? other)
Parameters
Returns
- bool
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
- bool
GetHashCode()
public override int GetHashCode()
Returns
- int
ToString()
public override string ToString()
Returns
- string
Operators
operator ==(WebsiteChannelLanguagePrefixDomain?, WebsiteChannelLanguagePrefixDomain?)
public static bool operator ==(WebsiteChannelLanguagePrefixDomain? left, WebsiteChannelLanguagePrefixDomain? right)
Parameters
Returns
- bool
operator !=(WebsiteChannelLanguagePrefixDomain?, WebsiteChannelLanguagePrefixDomain?)
public static bool operator !=(WebsiteChannelLanguagePrefixDomain? left, WebsiteChannelLanguagePrefixDomain? right)
Parameters
Returns
- bool