Udostępnij za pośrednictwem


Clipboard.SetTextAsync(String) Method

Definition

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

public static System.Threading.Tasks.Task SetTextAsync (string text);

Parameters

text
System.String

The text to put on the clipboard.

Returns

System.Threading.Tasks.Task

Returns text that is on the clipboard, or null if there is none.

Remarks

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

Applies to