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

Class ContentVersionDB

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice.

Inheritance
System.Object
ContentVersionDB
Namespace: EPiServer.DataAccess
Assembly: EPiServer.dll
Version: 9.12.2
Syntax
[ServiceConfiguration]
public class ContentVersionDB : DataAccessBase

Constructors

ContentVersionDB(IDatabaseHandler, DatabaseDateTimeHandler)

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

Declaration
public ContentVersionDB(IDatabaseHandler databaseHandler, DatabaseDateTimeHandler dateTimeHandler)
Parameters
Type Name Description
IDatabaseHandler databaseHandler
DatabaseDateTimeHandler dateTimeHandler

Methods

DeleteVersion(Int32)

Delete a single version of Content This member supports the EPiServer infrastructure and is not intended to be used directly from your code.

Declaration
public void DeleteVersion(int workID)
Parameters
Type Name Description
System.Int32 workID

The work ID.

Remarks

The published version of content cannot be deleted

List(Int32)

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

Declaration
public IEnumerable<ContentVersion> List(int contentID)
Parameters
Type Name Description
System.Int32 contentID
Returns
Type Description
System.Collections.Generic.IEnumerable<ContentVersion>

ListDelayedPublish()

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

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

ListDelayedPublish(Int32)

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

Declaration
public DataSet ListDelayedPublish(int contentID)
Parameters
Type Name Description
System.Int32 contentID
Returns
Type Description
System.Data.DataSet

SaveCommonDraft(Int32)

Saves the common draft.

Declaration
public void SaveCommonDraft(int workID)
Parameters
Type Name Description
System.Int32 workID

The work ID.

SaveCommonDraft(Int32, Boolean)

Saves the common draft.

Declaration
public void SaveCommonDraft(int workID, bool force)
Parameters
Type Name Description
System.Int32 workID

The work ID.

System.Boolean force

To force changing common draft (ignore if there are other versions that are common draft)

Extension Methods