Skip to content

PosSharp.Core.UposDeviceBase.SetEnabledAsync(bool,System.Threading.CancellationToken)

github-actions[bot] edited this page May 8, 2026 · 5 revisions

PosSharp v1.2.0 API Reference


UposDeviceBase.SetEnabledAsync(bool, CancellationToken) Method

Enables or disables the device.

public System.Threading.Tasks.Task SetEnabledAsync(bool enabled, System.Threading.CancellationToken ct=default(System.Threading.CancellationToken));

Parameters

enabled System.Boolean

true to enable; false to disable.

ct System.Threading.CancellationToken

A token to cancel the operation.

Implements SetEnabledAsync(bool, CancellationToken)

Returns

System.Threading.Tasks.Task
A task representing the asynchronous operation.

Clone this wiki locally