Clipboard.GetTextAsync Method

Definition

Returns any text that is on the clipboard.

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

Returns

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

Applies to