Share via


IClipboard.SetTextAsync(String) Method

Definition

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

public:
 System::Threading::Tasks::Task ^ SetTextAsync(System::String ^ text);
public System.Threading.Tasks.Task SetTextAsync (string? text);
abstract member SetTextAsync : string -> System.Threading.Tasks.Task
Public 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