SaaS CMS has officially launched! Learn more now.

Class VersionFilter

Filter class used in IContentVersionRepository List to filter which versions to retreive.

Inheritance
System.Object
VersionFilter
Namespace: EPiServer.Core
Assembly: EPiServer.dll
Version: 12.0.3
Syntax
public class VersionFilter : Object

Constructors

VersionFilter()

Declaration
public VersionFilter()

Properties

ChangedBy

Specifies that only versions changes by specified users should be returned

Declaration
public string ChangedBy { get; set; }
Property Value
Type Description
System.String

Specifies that only versions for a specific content instance is to be returned

Declaration
public ContentReference ContentLink { get; set; }
Property Value
Type Description
ContentReference

ExcludeDeleted

Specifies if versions for deleted content items should be excluded

Declaration
public bool ExcludeDeleted { get; set; }
Property Value
Type Description
System.Boolean
Remarks

Default value is false

Languages

Specifies that only versions of specified language should be returned

Declaration
public IEnumerable<CultureInfo> Languages { get; set; }
Property Value
Type Description
System.Collections.Generic.IEnumerable<System.Globalization.CultureInfo>

Statuses

Specifies that only versions of certain statuses should be returned

Declaration
public IEnumerable<VersionStatus> Statuses { get; set; }
Property Value
Type Description
System.Collections.Generic.IEnumerable<VersionStatus>

Extension Methods