Class Domain
Represents a published snapshot domain.
Inheritance
System.Object
Namespace: Umbraco.Web.Routing
Assembly: Umbraco.Web.dll
Syntax
public class Domain
Constructors
View SourceDomain(Int32, String, Int32, CultureInfo, Boolean)
Initializes a new instance of the Domain class.
Declaration
public Domain(int id, string name, int contentId, CultureInfo 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.Globalization.CultureInfo | 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 CultureInfo Culture { get; }
Property Value
Type | Description |
---|---|
System.Globalization.CultureInfo |
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 |