DataObject.RemoveAttachment

Prototypes

void RemoveAttachment( String sName )

Parameters

String sName
The name of the attachment to remove.

Remarks

This method removes an attachment from the DataObject. It is not an error to remove an attachment that does not exist.

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.RemoveAttachment( "X Mean" );
See Also

DataObject.RemoveAttachments