NetNonSecureReceivedISCL Example for C#

private void LEADDICOMNet1_NetNonSecureReceivedISCL(int hNet, int nError, ref object vBuffer, int nLength)
{
   byte[] DataBuffer = (byte[])vBuffer;
   if (nError == (int)LTDicomKernelLib.DicomErrorCodes.DICOM_SUCCESS)
      MessageBox.Show("1st byte of data = " + DataBuffer[0] + ", last byte of data = " + DataBuffer[nLength - 1]);
}