You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An object that implements only ITypedDataObject interface can't be used in clipboard or drag and drop operations
Suggest implementing ITypedDataObject interface whenever IDataObject interface is implemented, otherwise the typed APIs such as Clipboard.TryGetData(...) and DataObject.TryGetData(..) would throw an unsupported exception when invoked.
When overriding virtual methods in the WinForms concrete DataObject class, suggest overriding protected virtual bool TryGetDataCore as well to support the new APIs
if Clipboard.SetData or Clipboard.SetDataObject, or DataObject.SetData is invoked with an IDataObject data, verify if ITypeDataObject is implemented as well and suggest implementing it if it's not implemented.
The text was updated successfully, but these errors were encountered:
ITypedDataObject
interface can't be used in clipboard or drag and drop operationsITypedDataObject
interface wheneverIDataObject
interface is implemented, otherwise the typed APIs such as Clipboard.TryGetData(...) and DataObject.TryGetData(..) would throw an unsupported exception when invoked.DataObject
class, suggest overridingprotected virtual bool TryGetDataCore
as well to support the new APIsClipboard.SetData
orClipboard.SetDataObject
, orDataObject.SetData
is invoked with anIDataObject
data, verify ifITypeDataObject
is implemented as well and suggest implementing it if it's not implemented.The text was updated successfully, but these errors were encountered: