Share via


Clipboard.SetHistoryItemAsContent(ClipboardHistoryItem) Method

Definition

Sets an item in the clipboard history as the current content for the clipboard.

public:
 static SetHistoryItemAsContentStatus SetHistoryItemAsContent(ClipboardHistoryItem ^ item);
 static SetHistoryItemAsContentStatus SetHistoryItemAsContent(ClipboardHistoryItem const& item);
public static SetHistoryItemAsContentStatus SetHistoryItemAsContent(ClipboardHistoryItem item);
function setHistoryItemAsContent(item)
Public Shared Function SetHistoryItemAsContent (item As ClipboardHistoryItem) As SetHistoryItemAsContentStatus

Parameters

item
ClipboardHistoryItem

The item in the clipboard history to set as the current content for the clipboard.

Returns

The status of the operation.

Windows requirements

Device family
Windows 10, version 1809 (introduced in 10.0.17763.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v7.0)

Applies to