Share via


CheckScanner.AutoDisable Property

2/27/2008

Gets or sets the 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

AutoDisable adds an additional option to the application 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 DeviceEnabled 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.

AutoDisable is set by the service object.

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

CheckScanner Class
CheckScanner Members
Microsoft.PointOfService Namespace
DeviceEnabled