Share via


Scanner.ClearInput Method (POS for .NET v1.12 SDK Documentation)

2/27/2008

Clears all device input that has been buffered.

Namespace: Microsoft.PointOfService
Assembly: Microsoft.PointOfService (in microsoft.pointofservice.dll)

Syntax

'Declaration
Public MustOverride Sub ClearInput
public abstract void ClearInput ()
public:
virtual void ClearInput () abstract
public abstract void ClearInput ()
public abstract function ClearInput ()

Remarks

Any data events or input error events that were queued by the Service Object are also cleared. Usually the Service Objects waits for the DataEventEnabled property to be set to true and the FreezeEvents property to be set to false.

ClearInput may cause a PosControlException to be thrown with the following ErrorCode.

Value

Meaning

Claimed

The device is claimed by another process.

NotClaimed

The device must be claimed before the ClearInput method can be used.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread-safe. Any instance members are not guaranteed to be thread-safe.

See Also

Reference

Scanner Class
Scanner Members
Microsoft.PointOfService Namespace
PosCommon.FreezeEvents Property
DataEventEnabled