ICommonClaimedPosPrinterStation.ValidateData(String) ICommonClaimedPosPrinterStation.ValidateData(String) ICommonClaimedPosPrinterStation.ValidateData(String) ICommonClaimedPosPrinterStation.ValidateData(String) ICommonClaimedPosPrinterStation.ValidateData(String) Method

Definition

Determines whether a data sequence, possibly including one or more escape sequences, is valid for the printer station, before you use that data sequence when you call the IPosPrinterJob.Print and IPosPrinterJob.ExecuteAsync methods.

public : Platform::Boolean ValidateData(Platform::String data)
bool ValidateData(winrt::hstring data) const;
public bool ValidateData(String data)
Public Function ValidateData(data As String) As bool
var bool = iCommonClaimedPosPrinterStation.validateData(data);

Parameters

data
String String String

The data sequence that you want to validate before you use it with the IPosPrinterJob.Print method. This sequence may include printable data and escape sequences.

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

Returns

bool bool bool

True if the data passes validation; otherwise false.

See also