Share via


PosCommon.Open Method

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

Usage

'Usage
Dim posCommon1 As PosCommon
posCommon1.Open()

Syntax

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

Remarks

The application calls Open to open a device for subsequent input/output processing. Open initializes statistics reporting and event threads for the specified device. Open also initializes the values of numerous properties, including DataEventEnabled, FreezeEvents, AutoDisable, Claimed, and so on. For specifics about how these properties are initialized, see the individual properties.

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

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.

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
Close