ICommonClaimedPosPrinterStation.ValidateData(String) 메서드

정의

IPosPrinterJob.PrintIPosPrinterJob.ExecuteAsync 메서드를 호출할 때 해당 데이터 시퀀스를 사용하기 전에 하나 이상의 이스케이프 시퀀스를 포함하는 데이터 시퀀스가 프린터 스테이션에 유효한지 여부를 확인합니다.

public:
 bool ValidateData(Platform::String ^ data);
bool ValidateData(winrt::hstring const& data);
public bool ValidateData(string data);
function validateData(data)
Public Function ValidateData (data As String) As Boolean

매개 변수

data
String

Platform::String

winrt::hstring

IPosPrinterJob.Print 메서드와 함께 사용하기 전에 유효성을 검사하려는 데이터 시퀀스입니다. 이 시퀀스에는 인쇄 가능한 데이터 및 이스케이프 시퀀스가 포함될 수 있습니다.

시퀀스가 유효하지 않고 IPosPrinterJob.Print 와 함께 사용하는 경우 IPosPrinterJob.ExecuteAsync를 사용하여 실행하면 작업이 실패합니다. IPosPrinterJob.Print를 사용하여 작업에 명령을 추가한 후에는 잘못된 데이터 시퀀스를 사용하는 인쇄 명령을 제거할 수 없습니다.

반환

Boolean

bool

True이면 데이터가 유효성 검사를 통과합니다. 그렇지 않으면 false입니다.

적용 대상

추가 정보