Share via


ClaimedJournalPrinter.ValidateData(String) Method

Definition

Determines if a JournalPrintJob can successfully execute a print instruction with the specified data.

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 JournalPrintJob.Print method. This sequence may include printable data and escape sequences.

If the sequence is not valid, and you use it with JournalPrintJob.Print anyways, the job fails when you run it with JournalPrintJob.ExecuteAsync. You cannot remove a print instruction that uses an invalid data sequence after you add the instruction to the job with JournalPrintJob.Print.

Returns

Boolean

bool

True if the data passes validation; otherwise false.

Implements

M:Windows.Devices.PointOfService.ICommonClaimedPosPrinterStation.ValidateData(System.String) M:Windows.Devices.PointOfService.ICommonClaimedPosPrinterStation.ValidateData(Platform::String) M:Windows.Devices.PointOfService.ICommonClaimedPosPrinterStation.ValidateData(winrt::hstring)

Applies to

See also