Share via


PosCommon.Close Method (POS for .NET v1.12 SDK Documentation)

2/27/2008

Releases the device and its resources.

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

Syntax

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

Remarks

POS for .NET releases the Service Object, shuts down statistics reporting, and stops all event threads.

If the DeviceEnabled property is set to true, then POS for .NET disables the device. If the Claimed property is set to true, then POS for .NET releases the device.

Close may throw a PosControlException exception with the following values:

Value

Meaning

Closed

The device is already closed.

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

PosCommon Class
PosCommon Members
Microsoft.PointOfService Namespace
Open