DataObject.RemoveAttachments

Prototypes

void RemoveAttachments()

Parameters

None

Remarks

This method removes all the attachments from the DataObject.

The DataObject class enables you to add attachments to a DataObject. This enables you to associate additional information about the data in a DataObject with the DataObject itself. The DataObject does not use your attachments. Note that attachments exist only in memory. They are not stored when you store the DataObject.

Example
declare DataObject dobj = DataObject.Create( "Example" );
x = rannor( 1:100 );
dobj.AddVar( "X", x );

dobj.AddAttachedDouble( "X Mean", x[:] );

x = rannor( 1:100 );
dobj.SetVarData( "X", x );
/* Mean is out of date */
dobj.RemoveAttachments();
See Also

DataObject.RemoveAttachment