Interface IDomainCache
Namespace: Umbraco.Cms.Core.PublishedCache
Assembly: Umbraco.Core.dll
Syntax
public interface IDomainCache
Properties
View SourceDefaultCulture
Gets the system default culture.
Declaration
string DefaultCulture { get; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
View SourceGetAll(bool)
Gets all Domain in the current domain cache, including any domains that may be referenced by documents that are no longer published.
Declaration
IEnumerable<Domain> GetAll(bool includeWildcards)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | includeWildcards |
Returns
| Type | Description |
|---|---|
| IEnumerable<Domain> |
GetAssigned(int, bool)
Gets all assigned Domain for specified document, even if it is not published.
Declaration
IEnumerable<Domain> GetAssigned(int documentId, bool includeWildcards = false)
Parameters
| Type | Name | Description |
|---|---|---|
| int | documentId | The document identifier. |
| bool | includeWildcards | A value indicating whether to consider wildcard domains. |
Returns
| Type | Description |
|---|---|
| IEnumerable<Domain> |
HasAssigned(int, bool)
Determines whether a document has domains.
Declaration
bool HasAssigned(int documentId, bool includeWildcards = false)
Parameters
| Type | Name | Description |
|---|---|---|
| int | documentId | The document identifier. |
| bool | includeWildcards | A value indicating whether to consider wildcard domains. |
Returns
| Type | Description |
|---|---|
| bool |