Share via


PosCommon.Release Method

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

Usage

'Usage
Dim posCommon1 As PosCommon
posCommon1.Release()

Syntax

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

Remarks

The application calls Release to release exclusive access to the device.

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 sharable devices.) If Release is successful, it sets the Claimed property to FALSE.

Release returns void if successful, and it can throw the following exception:

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.

Platforms

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows Longhorn, and Windows 2000

Target Platforms

See Also

Reference

PosCommon Class
PosCommon Members
Microsoft.PointOfService Namespace
Claim