Class UmbracoDomain
Provides a base class for entities.
Namespace: Umbraco.Cms.Core.Models
Assembly: Umbraco.Core.dll
Syntax
[DataContract(IsReference = true)]
public class UmbracoDomain : EntityBase, IDomain, IEntity, IDeepCloneable, IRememberBeingDirty, ICanBeDirty
Constructors
View SourceUmbracoDomain(String)
Initializes a new instance of the UmbracoDomain class.
Declaration
public UmbracoDomain(string domainName)
Parameters
Type | Name | Description |
---|---|---|
System.String | domainName | The name of the domain. |
UmbracoDomain(String, String)
Initializes a new instance of the UmbracoDomain class.
Declaration
public UmbracoDomain(string domainName, string languageIsoCode)
Parameters
Type | Name | Description |
---|---|---|
System.String | domainName | The name of the domain. |
System.String | languageIsoCode | The language ISO code. |
Properties
View SourceDomainName
Gets or sets the name of the domain.
Declaration
[DataMember]
public string DomainName { get; set; }
Property Value
Type | Description |
---|---|
System.String | The name of the domain. |
IsWildcard
Gets a value indicating whether this is a wildcard domain (only specifying the language of a content node).
Declaration
public bool IsWildcard { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
LanguageId
Gets or sets the language ID assigned to the domain.
Declaration
[DataMember]
public int? LanguageId { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int32> | The language ID assigned to the domain. |
LanguageIsoCode
Gets the language ISO code.
Declaration
public string LanguageIsoCode { get; set; }
Property Value
Type | Description |
---|---|
System.String | The language ISO code. |
RootContentId
Gets or sets the root content ID assigned to the domain.
Declaration
[DataMember]
public int? RootContentId { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int32> | The root content ID assigned to the domain. |
SortOrder
Gets or sets the sort order.
Declaration
[DataMember]
public int SortOrder { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 | The sort order. |