Class NodeContentExtensions
Extension methods for NodeContent.
Inheritance
System.Object
NodeContentExtensions
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Commerce.Catalog.ContentTypes
Assembly: EPiServer.Business.Commerce.dll
Version: 13.30.0Syntax
public static class NodeContentExtensions
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. |