Class Domain
Represents a published snapshot domain.
Inheritance
System.Object
      Namespace: Umbraco.Cms.Core.Routing
Assembly: Umbraco.Core.dll
Syntax
public class DomainConstructors
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(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 | 
Culture
Gets the culture of the domain.
Declaration
public string Culture { get; }Property Value
| Type | Description | 
|---|---|
| System.String | 
Id
Gets the unique identifier of the domain.
Declaration
public int Id { get; }Property Value
| Type | Description | 
|---|---|
| System.Int32 | 
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 |