Class ContentVersionDB
This class supports the EPiServer infrastructure and is not intended to be used directly from your code.
Inherited Members
Namespace: EPiServer.DataAccess
Assembly: EPiServer.dll
Version: 8.11.0Syntax
[ServiceConfiguration]
public class ContentVersionDB : DataAccessBase
Constructors
ContentVersionDB(IDatabaseHandler)
This member supports the EPiServer infrastructure and is not intended to be used directly from your code.
Declaration
public ContentVersionDB(IDatabaseHandler databaseHandler)
Parameters
Type | Name | Description |
---|---|---|
IDatabaseHandler | databaseHandler |
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 DataSet List(int contentID)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | contentID |
Returns
Type | Description |
---|---|
System.Data.DataSet |
ListDelayedPublish()
This member supports the EPiServer infrastructure and is not intended to be used directly from your code.
Declaration
public DataSet ListDelayedPublish()
Returns
Type | Description |
---|---|
System.Data.DataSet |
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) |