Class Domain
Represents a published snapshot domain.
Inheritance
Namespace: Umbraco.Cms.Core.Routing
Assembly: Umbraco.Core.dll
Syntax
public class Domain
Constructors
View SourceDomain(Int32, String, Int32, String, Boolean)
Initializes a new instance of the Domain class.
Declaration
public Domain(int id, string name, int contentId, string culture, bool isWildcard)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | id | The unique identifier of the domain. |
System.String | name | The name of the domain. |
System.Int32 | contentId | The identifier of the content which supports the domain. |
System.String | culture | The culture of the domain. |
System.Boolean | isWildcard | A value indicating whether the domain is a wildcard domain. |
Domain(Int32, String, Int32, String, Boolean, Int32)
Initializes a new instance of the Domain class.
Declaration
public Domain(int id, string name, int contentId, string culture, bool isWildcard, int sortOrder)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | id | The unique identifier of the domain. |
System.String | name | The name of the domain. |
System.Int32 | contentId | The identifier of the content which supports the domain. |
System.String | culture | The culture of the domain. |
System.Boolean | isWildcard | A value indicating whether the domain is a wildcard domain. |
System.Int32 | sortOrder | The sort order. |
Domain(Domain)
Initializes a new instance of the Domain class.
Declaration
protected Domain(Domain domain)
Parameters
Type | Name | Description |
---|---|---|
Domain | domain | An origin domain. |
Properties
View SourceContentId
Gets the identifier of the content which supports the domain.
Declaration
public int ContentId { get; }
Property Value
Type | Description |
---|---|
System.Int32 | The identifier of the content which supports the domain. |
Culture
Gets the culture of the domain.
Declaration
public string Culture { get; }
Property Value
Type | Description |
---|---|
System.String | The culture of the domain. |
Id
Gets the unique identifier of the domain.
Declaration
public int Id { get; }
Property Value
Type | Description |
---|---|
System.Int32 | The unique identifier of the domain. |
IsWildcard
Gets a value indicating whether the domain is a wildcard domain.
Declaration
public bool IsWildcard { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Name
Gets the name of the domain.
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
System.String | The name of the domain. |
SortOrder
Gets the sort order.
Declaration
public int SortOrder { get; }
Property Value
Type | Description |
---|---|
System.Int32 | The sort order. |