Table of Contents

Method GetDataObjectAsync

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

GetDataObjectAsync()

Retrieves the data that is currently on the system clipboard, or null if there is no data on the clipboard. Operation is performed asynchroniously.

public static Task<IDataObject?> GetDataObjectAsync()

Returns

Task<IDataObject>

GetDataObjectAsync(Action<IDataObject?>)

Retrieves the data that is currently on the system clipboard, or null if there is no data on the clipboard. Operation is performed asynchroniously.

public static void GetDataObjectAsync(Action<IDataObject?> action)

Parameters

action Action<IDataObject>

Action to call after operation is completed.