Class ContextualPublishedCacheExtensions
Provides extension methods to ContextualPublishedCache.
Inheritance
Namespace:System.Dynamic.ExpandoObject
Assembly:umbraco.dll
Syntax
public static class ContextualPublishedCacheExtensions
Methods
GetDynamicAtRoot(ContextualPublishedContentCache)
Gets dynamic contents at root.
Declaration
public static dynamic GetDynamicAtRoot(this ContextualPublishedContentCache cache)
Parameters
Type | Name | Description |
---|---|---|
ContextualPublishedContentCache | cache | The contextual cache. |
Returns
Type | Description |
---|---|
System.Object | The dynamic contents. |
GetDynamicById(ContextualPublishedContentCache, Int32)
Gets a dynamic content identified by its unique identifier.
Declaration
public static dynamic GetDynamicById(this ContextualPublishedContentCache cache, int contentId)
Parameters
Type | Name | Description |
---|---|---|
ContextualPublishedContentCache | cache | The contextual cache. |
System.Int32 | contentId | The content unique identifier. |
Returns
Type | Description |
---|---|
System.Object | The dynamic content, or null. |
GetDynamicByXPath(ContextualPublishedContentCache, String, XPathVariable[])
Gets dynamic contents resulting from an XPath query.
Declaration
public static dynamic GetDynamicByXPath(this ContextualPublishedContentCache cache, string xpath, params XPathVariable[] vars)
Parameters
Type | Name | Description |
---|---|---|
ContextualPublishedContentCache | cache | The contextual cache. |
System.String | xpath | The XPath query. |
XPathVariable[] | vars | Optional XPath variables |
Returns
Type | Description |
---|---|
System.Object | The dynamic contents. |
GetDynamicByXPath(ContextualPublishedContentCache, XPathExpression, XPathVariable[])
Gets dynamic contents resulting from an XPath query.
Declaration
public static dynamic GetDynamicByXPath(this ContextualPublishedContentCache cache, XPathExpression xpath, params XPathVariable[] vars)
Parameters
Type | Name | Description |
---|---|---|
ContextualPublishedContentCache | cache | The contextual cache. |
System.Xml.XPath.XPathExpression | xpath | The XPath query. |
XPathVariable[] | vars | Optional XPath variables |
Returns
Type | Description |
---|---|
System.Object | The dynamic contents. |
GetDynamicSingleByXPath(ContextualPublishedContentCache, String, XPathVariable[])
Gets a dynamic content resulting from an XPath query.
Declaration
public static dynamic GetDynamicSingleByXPath(this ContextualPublishedContentCache cache, string xpath, params XPathVariable[] vars)
Parameters
Type | Name | Description |
---|---|---|
ContextualPublishedContentCache | cache | The contextual cache. |
System.String | xpath | The XPath query. |
XPathVariable[] | vars | Optional XPath variables |
Returns
Type | Description |
---|---|
System.Object | The dynamic content, or null. |
GetDynamicSingleByXPath(ContextualPublishedContentCache, XPathExpression, XPathVariable[])
Gets a dynamic content resulting from an XPath query.
Declaration
public static dynamic GetDynamicSingleByXPath(this ContextualPublishedContentCache cache, XPathExpression xpath, params XPathVariable[] vars)
Parameters
Type | Name | Description |
---|---|---|
ContextualPublishedContentCache | cache | The contextual cache. |
System.Xml.XPath.XPathExpression | xpath | The XPath query. |
XPathVariable[] | vars | Optional XPath variables |
Returns
Type | Description |
---|---|
System.Object | The dynamic content, or null. |