Clipboard.ClearHistory Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.