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

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

UpgradeTo

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

Version

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

Methods

Upgrade

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