SaaS CMS has officially launched! Learn more now.

Class VersionCollection

This type/member supports the EPiServer infrastructure and is not intended to be used directly from your code.

Inheritance
System.Object
VersionCollection
Implements
EPiServer.Data.Entity.IReadOnly<VersionCollection>
EPiServer.Data.Entity.IReadOnly
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.DataAccess.Internal
Assembly: EPiServer.Business.Commerce.dll
Version: 11.8.3
Syntax
public class VersionCollection : IReadOnly<VersionCollection>, IReadOnly

Constructors

VersionCollection()

Declaration
public VersionCollection()

VersionCollection(IEnumerable<ContentVersion>, Int32)

Declaration
public VersionCollection(IEnumerable<ContentVersion> versions, int totalCount)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<EPiServer.DataAbstraction.ContentVersion> versions
System.Int32 totalCount

Properties

IsReadOnly

Declaration
public bool IsReadOnly { get; }
Property Value
Type Description
System.Boolean

TotalCount

Declaration
public int TotalCount { get; set; }
Property Value
Type Description
System.Int32

Versions

Declaration
public IEnumerable<ContentVersion> Versions { get; }
Property Value
Type Description
System.Collections.Generic.IEnumerable<EPiServer.DataAbstraction.ContentVersion>

Methods

Add(ContentVersion)

Declaration
public void Add(ContentVersion version)
Parameters
Type Name Description
EPiServer.DataAbstraction.ContentVersion version

AddRange(IEnumerable<ContentVersion>)

Declaration
public void AddRange(IEnumerable<ContentVersion> versions)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<EPiServer.DataAbstraction.ContentVersion> versions

CreateWritableClone()

Declaration
public VersionCollection CreateWritableClone()
Returns
Type Description
VersionCollection

MakeReadOnly()

Declaration
public void MakeReadOnly()

Remove(ContentVersion)

Declaration
public void Remove(ContentVersion version)
Parameters
Type Name Description
EPiServer.DataAbstraction.ContentVersion version

ThrowIfReadOnly()

Declaration
protected void ThrowIfReadOnly()

Implements

EPiServer.Data.Entity.IReadOnly<>
EPiServer.Data.Entity.IReadOnly