Share via


PosCommon.Release Method

2/27/2008

Releases exclusive access to the device.

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

Syntax

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

Remarks

If the DeviceEnabled property is set to true, and the device is an exclusive-use device, then POS for .NET first disables the device. (Release does not change the device-enabled state of shareable devices.) If Release is successful, it sets the Claimed property to false.

Release may throw a PosControlException with the following values:

Value

Meaning

Illegal

The device is not claimed.

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
PosCommon.Claim Method