Share via


IClipboard.GetTextAsync Method

Definition

Returns any text that is on the clipboard.

public:
 System::Threading::Tasks::Task<System::String ^> ^ GetTextAsync();
public System.Threading.Tasks.Task<string?> GetTextAsync ();
abstract member GetTextAsync : unit -> System.Threading.Tasks.Task<string>
Public Function GetTextAsync () As Task(Of String)

Returns

Text content that is on the clipboard, or null if there is none.

Applies to