Click or drag to resize

GH_PersistentParamTAddPersistentData Method (Object)

Note: This API is now obsolete.

Utility function to add a new persistent data item. If the data is null or cannot be converted into T, this method will fail. You should probably use the PersistentData property to add type-safe data if you can.

Namespace:  Grasshopper.Kernel
Assembly:  Grasshopper (in Grasshopper.dll)
Syntax
[ObsoleteAttribute("This method has been superceded by SetPersistenData overloads")]
public bool AddPersistentData(
	Object data
)

Parameters

data
Type: SystemObject
Data to add.

Return Value

Type: Boolean
True on success, false on failure.
See Also