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
   
  
  Assembly: EPiServer.Business.Commerce.dll
  Version: 14.26.0
  Syntax
  
    public class VersionCollection : Object, 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
  
  
  
  
  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