• Share
    • Twitter
    • LinkedIn
    • Facebook
    • Email
  • Feedback
  • Improve this Doc

Interface IVersionable

This interface allow the page to interact with his modules to delete/rollback or publish a specific version. The module that wants support page versioning need to implement it in the Bussiness controller.

Namespace: DotNetNuke.Entities.Modules
Assembly: DotNetNuke.dll
Syntax
public interface IVersionable

Methods

| Improve this Doc View Source

DeleteVersion(Int32, Int32)

This method deletes a concrete version of the module.

Declaration
void DeleteVersion(int moduleId, int version)
Parameters
Type Name Description
System.Int32 moduleId

ModuleId.

System.Int32 version

Version number.

| Improve this Doc View Source

GetLatestVersion(Int32)

This method returns the latest version number of the current module.

Declaration
int GetLatestVersion(int moduleId)
Parameters
Type Name Description
System.Int32 moduleId

Module Id.

Returns
Type Description
System.Int32

Version number of the current published content version.

| Improve this Doc View Source

GetPublishedVersion(Int32)

This method returns the version number of the current published module version.

Declaration
int GetPublishedVersion(int moduleId)
Parameters
Type Name Description
System.Int32 moduleId

Module Id.

Returns
Type Description
System.Int32

Version number of the current published content version.

| Improve this Doc View Source

PublishVersion(Int32, Int32)

This method publishes a version of the module.

Declaration
void PublishVersion(int moduleId, int version)
Parameters
Type Name Description
System.Int32 moduleId

Module Id.

System.Int32 version

Version number.

| Improve this Doc View Source

RollBackVersion(Int32, Int32)

This method performs a rollback of a concrete version of the module.

Declaration
int RollBackVersion(int moduleId, int version)
Parameters
Type Name Description
System.Int32 moduleId

Module Id.

System.Int32 version

Version number that need to be rollback.

Returns
Type Description
System.Int32

New version number created after the rollback process.

Extension Methods

JsonExtensionsWeb.ToJson(Object)
  • View Source
Back to top by the community, for the community... #DNNCMS