Clipboard.SetTextAsync(String) Method

Definition

Sets the contents of the clipboard to be the specified text.

public:
 static System::Threading::Tasks::Task ^ SetTextAsync(System::String ^ text);
public static System.Threading.Tasks.Task SetTextAsync (string? text);
static member SetTextAsync : string -> System.Threading.Tasks.Task
Public Shared Function SetTextAsync (text As String) As Task

Parameters

text
String

The text to put on the clipboard.

Returns

A Task object with the current status of the asynchronous operation.

Remarks

This method returns immediately and does not guarentee that the text is on the clipboard by the time this method returns.

Applies to