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 |
---|---|
System.String |
Methods
View SourceGetAll(Boolean)
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 |
---|---|---|
System.Boolean | includeWildcards |
Returns
Type | Description |
---|---|
IEnumerable<Domain> |
GetAssigned(Int32, Boolean)
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 |
---|---|---|
System.Int32 | documentId | The document identifier. |
System.Boolean | includeWildcards | A value indicating whether to consider wildcard domains. |
Returns
Type | Description |
---|---|
IEnumerable<Domain> |
HasAssigned(Int32, Boolean)
Determines whether a document has domains.
Declaration
bool HasAssigned(int documentId, bool includeWildcards = false)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | documentId | The document identifier. |
System.Boolean | includeWildcards | A value indicating whether to consider wildcard domains. |
Returns
Type | Description |
---|---|
System.Boolean |