共用方式為


BarcodeScanner.CheckHealthAsync(UnifiedPosHealthCheckLevel) 方法

定義

測試條碼掃描器的狀態。

public:
 virtual IAsyncOperation<Platform::String ^> ^ CheckHealthAsync(UnifiedPosHealthCheckLevel level) = CheckHealthAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<winrt::hstring> CheckHealthAsync(UnifiedPosHealthCheckLevel const& level);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<string> CheckHealthAsync(UnifiedPosHealthCheckLevel level);
function checkHealthAsync(level)
Public Function CheckHealthAsync (level As UnifiedPosHealthCheckLevel) As IAsyncOperation(Of String)

參數

level
UnifiedPosHealthCheckLevel

指定的健康情況檢查層級。

傳回

IAsyncOperation<String>

IAsyncOperation<Platform::String>

IAsyncOperation<winrt::hstring>

測試結果的文字描述。 如果裝置不支援指定的檢查層級,則傳回錯誤。

屬性

適用於