Scale.TareWeight Property
Contains the tare weight of scale data.
Namespace: Microsoft.PointOfService
Assembly: Microsoft.PointOfService (in microsoft.pointofservice.dll)
Usage
'Usage
Dim scale1 As Scale
Dim returnValue As Decimal
returnValue = scale1.TareWeight
Dim sampleValue As Decimal
scale1.TareWeight = sampleValue
Syntax
'Declaration
Public MustOverride Property TareWeight() As Decimal
public abstract decimal TareWeight {get; set;}
public: property virtual Decimal^ TareWeight{
Decimal^ get();
Void set(Decimal^);
}
public abstract System.Decimal get_TareWeight();
public abstract void set_TareWeight(System.Decimal);
public abstract function get TareWeight() : Decimal;
public abstract function set TareWeight(Decimal);
Remarks
The weight in TareWeight has an assumed fractional part of three digits. For example, an actual value of 12345 represents 12.345, and an actual value of 5 represents 0.005. The measured unit is specified in the WeightUnit property. If CapTareWeight is FALSE, the device does not support setting a tare value and TareWeight is always zero.
Tare weight is not included in the item weight returned by the ReadWeight method.
TareWeight is typically initialized to the scale’s default tare weight (usually zero) when the device is first enabled.
Accessing TareWeight can cause the following exception to be thrown:
Value |
Meaning |
Illegal |
CapTareWeight is FALSE or an invalid tare value was specified. |
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
CapTareWeight
ReadWeight
WeightUnit