Share via


PosKeyboard.AutoDisable Property (POS for .NET v1.12 SDK Documentation)

2/27/2008

Gets or sets a Boolean value that indicates whether POS for .NET automatically disables the device when data is received.

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

Syntax

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

/** @property */
public abstract void set_AutoDisable (boolean value)
public abstract function get AutoDisable () : boolean

public abstract function set AutoDisable (value : boolean)

Remarks

The AutoDisable property provides the application with an additional option for controlling the receipt of input data. If the application wants to receive and process only one input, or only one input at a time, then this property can be set to true.

When true, the service object sets the DeviceEnabled property to false as soon as it receives and queues data to be raised as a DataEvent event. Before the service object raises any later events, the application must set the DeviceEnabled property back to true.

When false, the service object does not automatically disable the device when data is received; instead, it relies on the application to set the value of the DeviceEnabled property.

The AutoDisable property is typically initialized to false.

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

PosKeyboard Class
PosKeyboard Members
Microsoft.PointOfService Namespace
PosCommon.DeviceEnabled Property