Share via


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

2/27/2008

Opens a device for later input/output processing.

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

Syntax

'Declaration
Public Overrides Sub Open
public override void Open ()
public:
virtual void Open () override
public void Open ()
public override 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

PosKeyboardBase Class
PosKeyboardBase Members
Microsoft.PointOfService.BaseServiceObjects Namespace
PosCommon.Close Method