IGH_UpgradeObject

References
public interface IGH_UpgradeObject
Create a class with an empty constructor that implements this interface if you want to provide an upgrade mechanism.

Properties

UpgradeFrom

#
Guid UpgradeFrom { get; }
Gets the ComponentGuid of the old object (the object to be updated).

UpgradeTo

#
Guid UpgradeTo { get; }
Gets the ComponentGuid of the new object (the object that will be inserted).

Version

#
DateTime Version { get; }
Return a DateTime object that indicates when this upgrade mechanism was written, so that it becomes possible to distinguish competing upgrade mechanisms.

Methods

Upgrade

#
Upgrade an existing object.
target (IGH_DocumentObject)Object to upgrade.
document (GH_Document)Document that contains the object.
The newly created object on success, null on failure.