Click or drag to resize

GH_PersistentParamTAddPersistentData Method (T)

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)
[ObsoleteAttribute("This method has been superceded by SetPersistenData overloads")]
public bool AddPersistentData(
	T data


Type: T
Data to add.

Return Value

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