Datalogic .NET SDK
RequestID (Property)
Syntax
public Int32 RequestID {get; }
Description
Returns the request ID for the data posted to the decoding device when the decoder event was raised. This should be used in a subsequent call to Datalogic.API.DecodeHandle.ReadString and/or Datalogic.API.DecodeHandle.CancelRequest.
Example
private void dcdEvent_Scanned(object sender, DecodeEventArgs e) { CodeId cID = CodeId.NoData; string dcdData = string.Empty;
// Obtain the string and code id. try { dcdData = hDcd.ReadString(e.RequestID, ref cID); } catch(Exception) { //... return; } // ... }
|
See Also
DecodeHandle.ReadString(Method), DecodeHandle.CancelRequest(Method), Example #021.
Copyright © Datalogic ADC. All Right Reserved