World is now on Opti ID! Learn more

Class PackageContentExtensions

Extension methods for PackageContent.

Inheritance
System.Object
PackageContentExtensions
Namespace: EPiServer.Commerce.Catalog.ContentTypes
Assembly: EPiServer.Business.Commerce.dll
Version: 14.26.0
Syntax
public static class PackageContentExtensions : Object

Methods

GetEntries(PackageContent)

Gets the entries included in a package.

Declaration
public static IEnumerable<ContentReference> GetEntries(this PackageContent package)
Parameters
Type Name Description
PackageContent package

The package.

Returns
Type Description
System.Collections.Generic.IEnumerable<EPiServer.Core.ContentReference>

EPiServer.Core.ContentReferences of the bundle entries.

GetEntries(PackageContent, IRelationRepository)

Gets the entries included in a package.

Declaration
public static IEnumerable<ContentReference> GetEntries(this PackageContent package, IRelationRepository relationRepository)
Parameters
Type Name Description
PackageContent package

The package.

IRelationRepository relationRepository

The relation repository.

Returns
Type Description
System.Collections.Generic.IEnumerable<EPiServer.Core.ContentReference>

EPiServer.Core.ContentReferences of the bundle entries.