View Source
Class PublishedCacheBase
Inheritance
System.Object
Assembly: Umbraco.Core.dll
Syntax
public abstract class PublishedCacheBase : IPublishedCache, IXPathNavigable
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
Properties
View Source
PreviewDefault
Declaration
public bool PreviewDefault { get; }
Property Value
Type |
Description |
System.Boolean |
|
Methods
View Source
CreateNavigator()
Declaration
public XPathNavigator CreateNavigator()
Returns
Type |
Description |
System.Xml.XPath.XPathNavigator |
|
View Source
CreateNavigator(Boolean)
Declaration
public abstract XPathNavigator CreateNavigator(bool preview)
Parameters
Type |
Name |
Description |
System.Boolean |
preview |
|
Returns
Type |
Description |
System.Xml.XPath.XPathNavigator |
|
View Source
CreateNodeNavigator(Int32, Boolean)
Declaration
public abstract XPathNavigator CreateNodeNavigator(int id, bool preview)
Parameters
Type |
Name |
Description |
System.Int32 |
id |
|
System.Boolean |
preview |
|
Returns
Type |
Description |
System.Xml.XPath.XPathNavigator |
|
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
GetByXPath(Boolean, String, XPathVariable[])
Declaration
public abstract IEnumerable<IPublishedContent> GetByXPath(bool preview, string xpath, XPathVariable[] vars)
Parameters
Type |
Name |
Description |
System.Boolean |
preview |
|
System.String |
xpath |
|
XPathVariable[] |
vars |
|
Returns
View Source
GetByXPath(Boolean, XPathExpression, XPathVariable[])
Declaration
public abstract IEnumerable<IPublishedContent> GetByXPath(bool preview, XPathExpression xpath, XPathVariable[] vars)
Parameters
Type |
Name |
Description |
System.Boolean |
preview |
|
System.Xml.XPath.XPathExpression |
xpath |
|
XPathVariable[] |
vars |
|
Returns
View Source
GetByXPath(String, XPathVariable[])
Declaration
public IEnumerable<IPublishedContent> GetByXPath(string xpath, XPathVariable[] vars)
Parameters
Returns
View Source
GetByXPath(XPathExpression, XPathVariable[])
Declaration
public IEnumerable<IPublishedContent> GetByXPath(XPathExpression xpath, XPathVariable[] vars)
Parameters
Type |
Name |
Description |
System.Xml.XPath.XPathExpression |
xpath |
|
XPathVariable[] |
vars |
|
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
GetSingleByXPath(Boolean, String, XPathVariable[])
Declaration
public abstract IPublishedContent GetSingleByXPath(bool preview, string xpath, XPathVariable[] vars)
Parameters
Type |
Name |
Description |
System.Boolean |
preview |
|
System.String |
xpath |
|
XPathVariable[] |
vars |
|
Returns
View Source
GetSingleByXPath(Boolean, XPathExpression, XPathVariable[])
Declaration
public abstract IPublishedContent GetSingleByXPath(bool preview, XPathExpression xpath, XPathVariable[] vars)
Parameters
Type |
Name |
Description |
System.Boolean |
preview |
|
System.Xml.XPath.XPathExpression |
xpath |
|
XPathVariable[] |
vars |
|
Returns
View Source
GetSingleByXPath(String, XPathVariable[])
Declaration
public IPublishedContent GetSingleByXPath(string xpath, XPathVariable[] vars)
Parameters
Returns
View Source
GetSingleByXPath(XPathExpression, XPathVariable[])
Declaration
public IPublishedContent GetSingleByXPath(XPathExpression xpath, XPathVariable[] vars)
Parameters
Type |
Name |
Description |
System.Xml.XPath.XPathExpression |
xpath |
|
XPathVariable[] |
vars |
|
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 |
|