共用方式為


ClaimedPosPrinter.ResetStatisticsAsync(IIterable<String>) 方法

定義

針對可重設之服務點印表機的所有統計資料,將指定的統計資料重設為零。

public:
 virtual IAsyncOperation<bool> ^ ResetStatisticsAsync(IIterable<Platform::String ^> ^ statisticsCategories) = ResetStatisticsAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<bool> ResetStatisticsAsync(IIterable<winrt::hstring> const& statisticsCategories);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<bool> ResetStatisticsAsync(IEnumerable<string> statisticsCategories);
function resetStatisticsAsync(statisticsCategories)
Public Function ResetStatisticsAsync (statisticsCategories As IEnumerable(Of String)) As IAsyncOperation(Of Boolean)

參數

statisticsCategories

IIterable<String>

IEnumerable<String>

IIterable<Platform::String>

IIterable<winrt::hstring>

您想要重設之統計資料的名稱清單。

  • 空字串 (「」) 會擷取所有統計資料。
  • 「U_」 會擷取所有 UnifiedPOS 定義的統計資料。
  • 「M_」 會擷取所有制造商定義的統計資料。
  • Name1 和/或 Name2 會擷取 UnifiedPOS 或製造商所定義的特定具名統計資料。
  • 個別和組名的任何組合 (Name3、「U_」、「M_」) 。 .

傳回

如果重設成功,則傳回 true 的作業,否則會傳回 false。

屬性

備註

這個方法代表狀態的變更。

適用於