Click or drag to resize

DataObjectVersion Methods

The DataObjectVersion type exposes the following members.

Methods
  NameDescription
Public methodClone
The Clone metode is mainly used by DataObject.Clone
Public methodGetId
Returns the ID
Public methodGetPropertyValue(Int32)
Returns the value of property on the DataObjectVersion object. The value can be one of the following: string, int, datetime, double, bool, SetPropertyValue object or ReferencePropertyValue object. It can also by null, for a number of reasons: * The property was not found (it is not on the type) * The value is not loaded (ValueAvailable=false) * There is no value for the propery (if for instance the property has been added to the type at a later point) * The user does not have access to the property.
Public methodGetPropertyValue(Int32, DateTime)
Returns the DataTime property value based on the provided property ID from the latest dataobject version. If the value is null/undefined, the defaultValue is returned.
Public methodGetPropertyValue(Int32, String)
Returns the string representation of a property value on the DataObjectVersion object.
Public methodGetReferencePropertyValueId
Returns the value of a specific reference property. If more than one value are present the first is returned. If no value are present then 'default' is returned.
Public methodGetReferencePropertyValueIds
Returns a list of DataObjectIDs referenced to by the provided reference property.
Public methodGetReferencePropertyValues
Returns the values of the provided ReferenceProperty ID on the DataObjectVersion object. The collection can be empty, which can be caused by: * The property'en was not found (it is not on the type) * The values has not been read (ValueAvailable=false) * There are no values for propert * The active user does not have access to the property
Public methodGetSinglePropertyValueT(Int32, T)
Returns a single value for a property (fixed fields are not supported by this method).
Public methodGetSinglePropertyValueT(String, T)
Returns a single value for a property or a fixed field. Not all fixed fields are supported - please refer to the PropertyValuesContainer class for details.
Public methodHasNonEmptyPropertyWithLog
Returns true of the version contains at least one property with log on which a value is provided.
Public methodIsEqualTo(DataObjectVersion, Boolean)
Compares to dataobjectversions. Comparison is made on each of the property values. Returns true if the two object versions contains similar property values.
Public methodIsEqualTo(DataObjectVersion, IntegerList, Boolean)
Compares to dataobjectversions. Coparison is made on each of the property values. Returns true if the two object versions contains similar property values. Comparison is only made on the provided property ID's. If comparePropertyIds is empty all properties are compared.
Public methodIsPropertyChanged(DataObjectVersion, Int32)
Compares values for a property between to data object versions. Returns true if the versions contain different values.
Public methodStatic memberIsPropertyChanged(DataObjectVersion, DataObjectVersion, Int32)
Compares values for a property between to data object versions. Returns true if the versions contain different values.
Top
Extension Methods
  NameDescription
Public Extension MethodToBool
Converts object to boolean.
(Defined by ObjectExtensions.)
Public Extension MethodToDateTime
Converts object to DateTime.
(Defined by ObjectExtensions.)
Public Extension MethodToInt
Converts object to integer.
(Defined by ObjectExtensions.)
Top
See Also