Share via


Clipboard.ClearHistory Method

Definition

Clears the clipboard history.

public:
 static bool ClearHistory();
 static bool ClearHistory();
public static bool ClearHistory();
function clearHistory()
Public Shared Function ClearHistory () As Boolean

Returns

Boolean

bool

Returns true if the history was successfully cleared; otherwise, false.

Windows requirements

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

Remarks

Note that ClearHistory doesn't clear pinned items from the clipboard history.

Applies to