Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out 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.