Clipboard.ClearHistory 方法

定義

清除剪貼簿記錄。

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

傳回

Boolean

bool

true如果已成功清除歷程記錄,則傳回 ,false否則傳回 。

Windows 需求

裝置系列
Windows 10, version 1809 (已於 10.0.17763.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v7.0 引進)

備註

請注意 ,ClearHistory 不會清除剪貼簿歷程記錄中釘選的專案。

適用於