<PackageReference Include="System.Drawing.Common" Version="10.0.0-preview.6.25358.103" />

IOleServices

interface IOleServices
Platform specific OLE services.

Allows the given T to pass pre-validation without a resolver.

Creates an IComVisibleDataObject instance.

This method is called to validate that OLE is initialized and that the current thread is a single-threaded apartment (STA).

HRESULT GetDataHere(string format, object data, FORMATETC* pformatetc, STGMEDIUM* pmedium)

Called after unsuccessfully performing clipboard TYMED_HGLOBAL serialization.

bool IsValidTypeForFormat(Type type, string format)

Returns true if the given type is a valid type for the given format.

bool TryGetObjectFromDataObject<T>(IDataObject* dataObject, string format, out T data)

If the T is a the requested format this method will attempt to extract it from the dataObject.

void ValidateDataStoreData(ref string format, bool autoConvert, object data)

Allows custom validation or adapting of DataStore<T> data and formats.