DataView.RemoveAttachment

Prototypes

void RemoveAttachment( String sName )

Parameters

String sName
The name of the attachment to remove.

Remarks

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

The DataView class enables you to add attachments to a DataView. This enables you to associate additional information about a DataView with the DataView itself. The DataView does not use your attachments.

Example
x = rannor( 1:100 );
declare Histogram plot = Histogram.Create( "Example", x );

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

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

DataView.RemoveAttachments