PosPrinter.ClearOutput Method (POS for .NET v1.12 SDK Documentation)

2/27/2008

Clears all device output that has been buffered. Also, when it is possible, stops outputs that are in progress.

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

Syntax

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

Remarks

Any output error events that were queued by the service object—usually waiting for FreezeEvents to be set to false—are also cleared.

Before it calls this method, the application must open and claim the device.

ClearOutput may throw a PosControlException with the following ErrorCodes:

Value

Meaning

Claimed

The device is claimed by another process.

NotClaimed

The device must be claimed before this 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

PosPrinter Class
PosPrinter Members
Microsoft.PointOfService Namespace
PosCommon.FreezeEvents Property