View Source
Class PublishedCacheBase
Inheritance
System.Object
Assembly: Umbraco.Core.dll
Syntax
public abstract class PublishedCacheBase : IPublishedCache
Constructors
View Source
PublishedCacheBase(Boolean)
Declaration
protected PublishedCacheBase(bool previewDefault)
Parameters
Type |
Name |
Description |
System.Boolean |
previewDefault |
|
View Source
PublishedCacheBase(IVariationContextAccessor)
Declaration
public PublishedCacheBase(IVariationContextAccessor variationContextAccessor)
Parameters
View Source
PublishedCacheBase(IVariationContextAccessor, Boolean)
Declaration
public PublishedCacheBase(IVariationContextAccessor variationContextAccessor, bool previewDefault)
Parameters
Properties
View Source
PreviewDefault
Declaration
public bool PreviewDefault { get; }
Property Value
Type |
Description |
System.Boolean |
|
Methods
View Source
GetAtRoot(Boolean, String)
Declaration
public abstract IEnumerable<IPublishedContent> GetAtRoot(bool preview, string culture = null)
Parameters
Type |
Name |
Description |
System.Boolean |
preview |
|
System.String |
culture |
|
Returns
View Source
GetAtRoot(String)
Declaration
public IEnumerable<IPublishedContent> GetAtRoot(string culture = null)
Parameters
Type |
Name |
Description |
System.String |
culture |
|
Returns
View Source
GetByContentType(IPublishedContentType)
Declaration
public virtual IEnumerable<IPublishedContent> GetByContentType(IPublishedContentType contentType)
Parameters
Returns
View Source
GetById(Guid)
Declaration
public IPublishedContent GetById(Guid contentId)
Parameters
Type |
Name |
Description |
Guid |
contentId |
|
Returns
View Source
GetById(Boolean, Guid)
Declaration
public abstract IPublishedContent GetById(bool preview, Guid contentId)
Parameters
Type |
Name |
Description |
System.Boolean |
preview |
|
Guid |
contentId |
|
Returns
View Source
GetById(Boolean, Int32)
Declaration
public abstract IPublishedContent GetById(bool preview, int contentId)
Parameters
Type |
Name |
Description |
System.Boolean |
preview |
|
System.Int32 |
contentId |
|
Returns
View Source
GetById(Boolean, Udi)
Declaration
public abstract IPublishedContent GetById(bool preview, Udi contentId)
Parameters
Type |
Name |
Description |
System.Boolean |
preview |
|
Udi |
contentId |
|
Returns
View Source
GetById(Int32)
Declaration
public IPublishedContent GetById(int contentId)
Parameters
Type |
Name |
Description |
System.Int32 |
contentId |
|
Returns
View Source
GetById(Udi)
Declaration
public IPublishedContent GetById(Udi contentId)
Parameters
Type |
Name |
Description |
Udi |
contentId |
|
Returns
View Source
GetContentType(Guid)
Declaration
public abstract IPublishedContentType GetContentType(Guid key)
Parameters
Type |
Name |
Description |
Guid |
key |
|
Returns
View Source
GetContentType(Int32)
Declaration
public abstract IPublishedContentType GetContentType(int id)
Parameters
Type |
Name |
Description |
System.Int32 |
id |
|
Returns
View Source
GetContentType(String)
Declaration
public abstract IPublishedContentType GetContentType(string alias)
Parameters
Type |
Name |
Description |
System.String |
alias |
|
Returns
View Source
HasById(Boolean, Int32)
Declaration
public abstract bool HasById(bool preview, int contentId)
Parameters
Type |
Name |
Description |
System.Boolean |
preview |
|
System.Int32 |
contentId |
|
Returns
Type |
Description |
System.Boolean |
|
View Source
HasById(Int32)
Declaration
public bool HasById(int contentId)
Parameters
Type |
Name |
Description |
System.Int32 |
contentId |
|
Returns
Type |
Description |
System.Boolean |
|
View Source
HasContent()
Declaration
Returns
Type |
Description |
System.Boolean |
|
View Source
HasContent(Boolean)
Declaration
public abstract bool HasContent(bool preview)
Parameters
Type |
Name |
Description |
System.Boolean |
preview |
|
Returns
Type |
Description |
System.Boolean |
|