Scale.AutoDisable Property
Indicates whether POS for .NET automatically disables the scale when data is received.
Namespace: Microsoft.PointOfService
Assembly: Microsoft.PointOfService (in microsoft.pointofservice.dll)
Usage
'Usage
Dim scale1 As Scale
Dim returnValue As Boolean
returnValue = scale1.AutoDisable
Dim sampleValue As Boolean
scale1.AutoDisable = sampleValue
Syntax
'Declaration
Public MustOverride Property AutoDisable() As Boolean
public abstract bool AutoDisable {get; set;}
public: property virtual Boolean AutoDisable{
Boolean get();
Void set(Boolean);
}
public abstract boolean get_AutoDisable();
public abstract void set_AutoDisable(boolean);
public abstract function get AutoDisable() : Boolean;
public abstract function set AutoDisable(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 typically initialized to FALSE. It should then be 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.
Platforms
Development Platforms
Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows Longhorn, and Windows 2000
Target Platforms
See Also
Reference
Scale Class
Scale Members
Microsoft.PointOfService Namespace