Clipboard.SetContent(DataPackage) Clipboard.SetContent(DataPackage) Clipboard.SetContent(DataPackage) Clipboard.SetContent(DataPackage) Clipboard.SetContent(DataPackage) Method

Definition

Sets the current content that is stored in the clipboard object.

public : static void SetContent(DataPackage content)
static void SetContent(DataPackage content) const;
public static void SetContent(DataPackage content)
Public Shared Sub SetContent(content As DataPackage)
Windows.ApplicationModel.DataTransfer.Clipboard.setContent(content);

Parameters

content
DataPackage DataPackage DataPackage

Contains the content of the clipboard. If NULL, the clipboard is emptied.

Remarks

Use this method after creating and defining a DataPackage with the data you want to put on the clipboard. Call this method only when the application is in the foreground, or when a debugger is attached.