PosCommon.DeviceEnabled Property (POS for .NET v1.12 SDK Documentation)

2/27/2008

Gets or sets a Boolean value that indicates whether the device has been placed in an operational state.

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

Syntax

'Declaration
Public MustOverride Property DeviceEnabled As Boolean
public abstract bool DeviceEnabled { get; set; }
public:
virtual property bool DeviceEnabled {
    bool get () abstract;
    void set (bool value) abstract;
}
/** @property */
public abstract boolean get_DeviceEnabled ()

/** @property */
public abstract void set_DeviceEnabled (boolean value)
public abstract function get DeviceEnabled () : boolean

public abstract function set DeviceEnabled (value : boolean)

Remarks

When true, the device has been put in an operational state. If changed to true, then the device is brought to an operational state. The appropriate device statistics and device information will be loaded, if it is necessary. Exclusive-use devices must be opened and claimed before this property can be accessed. Shared devices must be opened before this property can be accessed.

When false, the device has been disabled. If changed to false, then the device is physically disabled when it is possible. Any later input is discarded, and output operations are disallowed.

Changing DeviceEnabled usually does not physically affect output devices. However, for consistency, the application must set DeviceEnabled to true before it uses output devices.

DeviceEnabled is initialized to false. State verification occurs in the basic and base classes for each device.

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