ClaimedReceiptPrinter.ValidateData(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Determines whether a data sequence, possibly including one or more escape sequences, is valid for the receipt printer station, before you use that data sequence when you call the ReceiptPrintJob.Print and ReceiptPrintJob.ExecuteAsync methods.
public:
virtual bool ValidateData(Platform::String ^ data) = ValidateData;
bool ValidateData(winrt::hstring const& data);
public bool ValidateData(string data);
function validateData(data)
Public Function ValidateData (data As String) As Boolean
Parameters
- data
-
String
Platform::String
winrt::hstring
The data sequence that you want to validate before you use it with the ReceiptPrintJob.Print method. This sequence may include printable data and escape sequences.
If the sequence is not valid, and you use it with ReceiptPrintJob.Print anyways, the job fails when you run it with ReceiptPrintJob.ExecuteAsync. You cannot remove a print instruction that uses an invalid data sequence after you add the instruction to the job with ReceiptPrintJob.Print.
Returns
bool
True if the data passes validation; otherwise false.