Share via


PosCommon.DeviceEnabled Property

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

Usage

'Usage
Dim posCommon1 As PosCommon

Dim returnValue As Boolean
returnValue = posCommon1.DeviceEnabled

Dim sampleValue As Boolean
posCommon1.DeviceEnabled = sampleValue

Syntax

'Declaration
Public MustOverride Property DeviceEnabled() As Boolean
public abstract bool DeviceEnabled {get; set;}
public: property virtual Boolean DeviceEnabled{
    Boolean get();
    Void set(Boolean);
}
public abstract boolean get_DeviceEnabled();
public abstract void set_DeviceEnabled(boolean);
public abstract function get DeviceEnabled() : Boolean;
public abstract function set DeviceEnabled(Boolean);

Remarks

When TRUE, the device has been placed 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 needed. 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 possible. Any subsequent input will be discarded, and output operations are disallowed.

Changing DeviceEnabled usually does not physically affect output devices. For consistency, however, the application must set DeviceEnabled to TRUE before using output devices.

DeviceEnabled is initialized to FALSE. State verification takes place 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.

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