Share via


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

2/27/2008

Opens a device for later input/output processing.

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

Syntax

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

Remarks

Open initializes statistics reporting and event threads for the specified device. Open also initializes the values of many properties. This includes the DataEventEnabled, FreezeEvents, AutoDisable, Claimed properties and more. For specifics about how these properties are initialized, see the individual properties.

Open may throw a PosControlException with the following values:

Value

Meaning

Illegal

One of the following conditions has occurred:

  • The device is already opened; or

  • The DeviceName property is null or an empty string ("").

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.Close Method