Share via


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

2/27/2008

Get or sets a Boolean value whether POS for .NET automatically disables the Scanner after 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

If the application wants to receive and process only one input, or only one input at a time, the AutoDisable 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, it expects the application to 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.

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

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