PosPrinterBase.ValidateData Method (POS for .NET v1.14 SDK Documentation)
3/2/2014
Validates data for a specified printer station.
Namespace: Microsoft.PointOfService.BaseServiceObjects
Assembly: Microsoft.PointOfService.ControlBase (in microsoft.pointofservice.controlbase.dll)
Syntax
'Declaration
Public Overrides Sub ValidateData ( _
station As PrinterStation, _
data As String _
)
public override void ValidateData (
PrinterStation station,
string data
)
public:
virtual void ValidateData (
PrinterStation station,
String^ data
) override
public void ValidateData (
PrinterStation station,
String data
)
public override function ValidateData (
station : PrinterStation,
data : String
)
Parameters
- station
The PrinterStation for which the data will be validated.
- data
The data that will be validated for the specified PrinterStation.
Remarks
The PosPrinterBase class verifies that the application has the device opened, claimed, and enabled. PosPrinterBase validates the parameters and device state, and may throw PosControlException exceptions with the following values:
Value |
Meaning |
Illegal |
a) The requested printer station must be PrinterStation.Receipt, PrinterStation.Journal, PrinterStation.Slip; or b) the requested printer station doesn’t exist (that is, the value of the CapRecPresent, CapJrnPresent, or CapSlpPresent property is false). |
If no exception is thrown, the PosPrinterBase class calls ValidatePrintImpl.
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
PosPrinterBase Class
PosPrinterBase Members
Microsoft.PointOfService.BaseServiceObjects Namespace
PosPrinter.ValidateData Method
ValidateDataImpl