Share via


Micr.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

If true, POS for .NET sets DeviceEnabled to false after it receives and queues data as a DataEvent event. Before any additional input can be received, the application must set DeviceEnabled to true.

If false, POS for .NET does not automatically disable the device when data is received.

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

AutoDisable is set and kept current by the service object while the device is enabled.

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

Micr Class
Micr Members
Microsoft.PointOfService Namespace