Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

Class IContentVersionRepositoryExtensions

Convenient methods for IContentVersionRepository

Inheritance
System.Object
IContentVersionRepositoryExtensions
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.Core
Assembly: EPiServer.dll
Version: 11.20.7
Syntax
public static class IContentVersionRepositoryExtensions

Methods

List(IContentVersionRepository, ContentReference)

Lists all versions

Declaration
public static IEnumerable<ContentVersion> List(this IContentVersionRepository contentVersionRepository, ContentReference contentLink)
Parameters
Type Name Description
IContentVersionRepository contentVersionRepository

The version repository that is being extended

ContentReference contentLink

The content link.

Returns
Type Description
System.Collections.Generic.IEnumerable<ContentVersion>

All matching versions

List(IContentVersionRepository, ContentReference, String)

Lists all versions for a page current language selection if the languageBranch is null otherwise lists all versions for a page for a specific language

Declaration
public static IEnumerable<ContentVersion> List(this IContentVersionRepository contentVersionRepository, ContentReference contentLink, string languageBranch)
Parameters
Type Name Description
IContentVersionRepository contentVersionRepository

The version repository that is being extended

ContentReference contentLink

The content link.

System.String languageBranch

The language branch

Returns
Type Description
System.Collections.Generic.IEnumerable<ContentVersion>

All matching versions

ListDelayedPublish(IContentVersionRepository)

Lists all content references that are set to delayed publish.

Declaration
public static IEnumerable<ContentReference> ListDelayedPublish(this IContentVersionRepository contentVersionRepository)
Parameters
Type Name Description
IContentVersionRepository contentVersionRepository

The version repository that is being extended

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

All matching content Versions

ListPublished(IContentVersionRepository, ContentReference)

Lists the published versions for a content

Declaration
public static IEnumerable<ContentVersion> ListPublished(this IContentVersionRepository contentVersionRepository, ContentReference contentLink)
Parameters
Type Name Description
IContentVersionRepository contentVersionRepository

The version repository that is being extended

ContentReference contentLink

The content link.

Returns
Type Description
System.Collections.Generic.IEnumerable<ContentVersion>

All published versions for the content