Grasshopper API
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 )
<ObsoleteAttribute("This method has been superceded by SetPersistenData overloads")> Public Function AddPersistentData ( data As T ) As Boolean
Parameters
- data
- Type: T
Data to add.
Return Value
Type: BooleanTrue on success, false on failure.
