Class VersionControl
- Namespace
- Dynamicweb.Content.Versioning
- Assembly
- Dynamicweb.dll
Handles version data
- Inheritance
-
Version
Control
- Inherited Members
Remarks
Used internally by Paragraph.
Constructors
VersionControl()
Fields
PageItemType
Field Value
Methods
CleanUpVersions(IEnumerable<string>, IEnumerable<string>)
Cleans version older then specified days with specified threshold.
Parameters
versionDataTypes
IEnumerable<string>e.g. "Product", "CategoryFields".
ids
IEnumerable<string>
Remarks
Works only with objects using VersionDataTypeIdString, but not VersionDataTypeId!!
CleanUpVersions(string[], int, int)
Cleans version older then specified days with specified threshold.
Parameters
versionDataTypes
string[]e.g. "Product", "CategoryFields".
days
intSpecifies the days older than that the versions are going to be deleted.
versions
intSpecifies the versions threshhold.
Remarks
Works only with objects using VersionDataTypeIdString, but not VersionDataTypeId!!
DiscardChanges(string, string)
Discards the version changes for the version data .
Parameters
versionDataType
stringThe type of version data object i.e. "Page", "Product" etc.
versionDataTypeId
stringThe version data object id.
FindVersions(string, string)
Parameters
Returns
GetAllVersions(string, string)
Parameters
Returns
GetAllVersionsContainsKeyPart(string, string)
Parameters
Returns
Load(DataSet, string, string, DateTime)
Loads the specified ds.
Parameters
ds
DataSet Copied dataset
type
stringThe type.
key
stringThe key.
previewDate
DateTime The preview date.
LoadAllVersions(DataSet, string, string)
Parameters
LoadAllVersions(DataSet, string, string, DateTime)
Parameters
LoadItem(int)
Loads the specified item.
Parameters
pageId
int
Returns
PublishVersion(string, string, DateTime)
Parameters
Save(DataSet, string, string)
Saves the specified version data from the dataset.
Parameters
UpdatePublishedVersion(int)
Parameters
versionDataId
int