PosPrinter.CheckHealthAsync(UnifiedPosHealthCheckLevel) 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.
Gets the health state of the point-of-service printer asynchronously.
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)
Parameters
The type of health check that you want to perform for the point-of-service printer. Only level POSInternal(1) should be used, as any other UnifiedPosHealthCheckLevel levels will result in an error.
Returns
An asynchronous operation that returns the health state of the point-of-service printer. You should display this value in the app interface immediately so the user of the app can interpret the value. For example, the operation returns “OK” as the health state if the state of the point-of-service printer is good.
- Attributes