Class NodeContentExtensions
Extension methods for NodeContent.
Inheritance
System.Object
NodeContentExtensions
Namespace: EPiServer.Commerce.Catalog.ContentTypes
Assembly: EPiServer.Business.Commerce.dll
Version: 14.26.0Syntax
public static class NodeContentExtensions : Object
Methods
GetCategories(NodeContent)
Gets the categories to which the category is linked (parent categories). N.B. This does not include the main parent category (given by the ParentLink of the content).
Declaration
public static IEnumerable<ContentReference> GetCategories(this NodeContent node)
Parameters
| Type | Name | Description |
|---|---|---|
| NodeContent | node | The node. |
Returns
| Type | Description |
|---|---|
| System.Collections.Generic.IEnumerable<EPiServer.Core.ContentReference> | EPiServer.Core.ContentReferences of the parent categories. |
GetCategories(NodeContent, IRelationRepository)
Gets the categories to which the category is linked (parent categories). N.B. This does not include the main parent category (given by the ParentLink of the content).
Declaration
public static IEnumerable<ContentReference> GetCategories(this NodeContent node, IRelationRepository relationRepository)
Parameters
| Type | Name | Description |
|---|---|---|
| NodeContent | node | The node. |
| IRelationRepository | relationRepository | The relation repository. |
Returns
| Type | Description |
|---|---|
| System.Collections.Generic.IEnumerable<EPiServer.Core.ContentReference> | EPiServer.Core.ContentReferences of the parent categories. |