Partilhar via


ClearData Method

Clears all data and data formats from the OLE drag-and-drop DataObject object. Available at run time only.

oDataObject.ClearData

Remarks

The ClearData method can only be executed in the OLEStartDrag event; calling the ClearData method from the OLEDragDrop or OLE DragOver events generates an error.

See Also

GetData Method | GetFormat Method | OLE Drag-and-Drop Overview | SetData Method | SetFormat Method

Applies To: DataObject Object