GetPeerEncryptionISCL Example for C#

//LEADDICOMNet1 is a predefined LEADDicomNet object
private void TestGetPeerEncryptionISCL ( )
{
   string strEncr = null;
   strEncr = "Unknown";
   if (LEADDICOMNet1.GetPeerEncryptionISCL(LEADDICOMNet1.hNet) == (int)
      LTDNCLib.DicomEncryptionMode.DICOM_ISCL_ENCRYPT_NONE) strEncr = "None";
   else if (LEADDICOMNet1.GetPeerEncryptionISCL(LEADDICOMNet1.hNet) == (int)
      LTDNCLib.DicomEncryptionMode.DICOM_ISCL_ENCRYPT_DESCBC) strEncr = "DES algorithm, cipher block chaining mode";
   MessageBox.Show("Sender tried to send a message with encryption algorithm: " + strEncr);
}