Table of Contents

Class VersionData

Namespace
Dynamicweb.Content.Versioning
Assembly
Dynamicweb.dll

Version data record. Holds a XML representation of datarow data.

public class VersionData
Inheritance
VersionData
Inherited Members

Constructors

VersionData(int)

Initializes a new instance of the VersionData class.

public VersionData(int versionDataId)

Parameters

versionDataId int

The version data ID. A valid VersionDataID from the table VersionData

VersionData(string, int)

Initializes a new instance of the VersionData class.

public VersionData(string type, int versionDataId)

Parameters

type string

The type.

versionDataId int

The version data ID. A valid VersionDataID from the table VersionData

VersionData(string, int, DateTime)

Initializes a new instance of the VersionData class.

public VersionData(string type, int versionDataId, DateTime publishedDate)

Parameters

type string

The type. On of 'Page' or 'Paragraph'

versionDataId int

The version data ID. A valid VersionDataID from the table VersionData

publishedDate DateTime

The latest published date.

VersionData(string, string)

Initializes a new instance of the VersionData class.

public VersionData(string type, string versionDataId)

Parameters

type string

The type.

versionDataId string

The version data ID. A valid VersionDataID from the table VersionData

VersionData(string, string, bool, DateTime?)

Initializes a new instance of the VersionData class.

public VersionData(string type, string versionDataId, bool published, DateTime? date)

Parameters

type string

The type. On of 'Page' or 'Paragraph'

versionDataId string

The version data ID. A valid VersionDataID from the table VersionData

published bool

The type of data published or draft.

date DateTime?

The latest published date when published is true or the latest edited.

VersionData(string, string, DateTime)

Initializes a new instance of the VersionData class.

public VersionData(string type, string versionDataId, DateTime publishedDate)

Parameters

type string

The type. On of 'Page' or 'Paragraph'

versionDataId string

The version data ID. A valid VersionDataID from the table VersionData

publishedDate DateTime

The latest published date.

Properties

DataCreated

Gets or sets the data created time.

public DateTime DataCreated { get; set; }

Property Value

DateTime

The data created.

DataEdit

Gets or sets the data edit time.

public DateTime DataEdit { get; set; }

Property Value

DateTime

The data edit.

DataId

Gets or sets the ID of the data.

public int DataId { get; set; }

Property Value

int

The data ID.

DataPublished

Gets or sets a value indicating whether [data published].

public bool DataPublished { get; set; }

Property Value

bool

true if [data published]; otherwise, false.

DataPublishedTime

Gets or sets the data published time.

public DateTime DataPublishedTime { get; set; }

Property Value

DateTime

The data published time.

DataType

Gets or sets the type of the data.

public string DataType { get; set; }

Property Value

string

The type of the data.

DataTypeID

Gets or sets the data type ID.

public int DataTypeID { get; set; }

Property Value

int

The data type ID.

DataTypeIDString

Gets or sets the data type ID.

public string DataTypeIDString { get; set; }

Property Value

string

The data type ID.

DataXML

Gets or sets the data XML. An XML string representing the data from the datarow in XML.

public string DataXML { get; set; }

Property Value

string

The data XML.

Methods

GetAsDatarow()

Gets the version XML as a datarow.

public DataRow GetAsDatarow()

Returns

DataRow

A Data.DataRow with the values of the XML.

Save()

Saves the data of this instance.

public void Save()

UpdateDatafield(string, string)

Updates the datafield in the version XML.

public void UpdateDatafield(string fieldName, string newValue)

Parameters

fieldName string

Name of the field.

newValue string

The new value.

To top