November Happy Hour will be moved to Thursday December 5th.

Interface IContentVersionRepository

Definies signature for ContentVersion repository.

Namespace: EPiServer.Core
Assembly: EPiServer.dll
Version: 8.11.0
Syntax
public interface IContentVersionRepository

Methods

Delete(ContentReference)

Delete a single version of a Content

Declaration
void Delete(ContentReference contentLink)
Parameters
Type Name Description
ContentReference contentLink

The content link.

List(ContentReference)

Lists all versions

Declaration
IEnumerable<ContentVersion> List(ContentReference contentLink)
Parameters
Type Name Description
ContentReference contentLink

The content link.

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

All matching versions

List(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
IEnumerable<ContentVersion> List(ContentReference contentLink, string languageBranch)
Parameters
Type Name Description
ContentReference contentLink

The content link.

System.String languageBranch

The language branch

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

All matching versions

ListDelayedPublish()

Lists all content references that are set to delayed publish.

Declaration
IEnumerable<ContentReference> ListDelayedPublish()
Returns
Type Description
System.Collections.Generic.IEnumerable<ContentReference>

All matching content Versions

ListPublished(ContentReference)

Lists the published versions for a content

Declaration
IEnumerable<ContentVersion> ListPublished(ContentReference contentLink)
Parameters
Type Name Description
ContentReference contentLink

The content link.

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

All published versions for the content

Load(ContentReference)

Loads the version.

Declaration
ContentVersion Load(ContentReference contentLink)
Parameters
Type Name Description
ContentReference contentLink

The content link.

Returns
Type Description
ContentVersion

A PageVersion

LoadCommonDraft(ContentReference, String)

Loads the common draft.

Declaration
ContentVersion LoadCommonDraft(ContentReference contentLink, string language)
Parameters
Type Name Description
ContentReference contentLink

The content link to load common draft for.

System.String language

The language.

Returns
Type Description
ContentVersion

CommonDraft if it exist, otherwise Published, If no published exist the latest saved version is returned

LoadPublished(ContentReference)

Loads the published version

Declaration
ContentVersion LoadPublished(ContentReference contentLink)
Parameters
Type Name Description
ContentReference contentLink

The content link.

Returns
Type Description
ContentVersion

A PageVersion

LoadPublished(ContentReference, String)

Loads the published version a page with current language selection if the languageBranch is null otherwise loads the published version a page for a specific language

Declaration
ContentVersion LoadPublished(ContentReference contentLink, string languageBranch)
Parameters
Type Name Description
ContentReference contentLink

The content link.

System.String languageBranch

The language branch.

Returns
Type Description
ContentVersion

A PageVersion

SetCommonDraft(ContentReference)

Sets the specified version as common draft.

Declaration
void SetCommonDraft(ContentReference contentLink)
Parameters
Type Name Description
ContentReference contentLink

The content link.

Extension Methods