IsImplementClass Example for C#

//LEADDICOMNet1 is a predefined LEADDicomNet object
private void TestIsImplementClass ( )
{
   const string UID_RT_DOSE_STORAGE = "1.2.840.10008.5.1.4.1.1.481.2";
   // Radiotherapy Dose Storage string
   szUID = null;
   //is max len enabled?
   if (LEADDICOMNet1.IsImplementClass(LEADDICOMNet1.hPDU) == true)
   {
      //disable it
      //display old value
      szUID = LEADDICOMNet1.GetImplementClass(LEADDICOMNet1.hPDU);
      MessageBox.Show(szUID);
      LEADDICOMNet1.SetImplementClass(LEADDICOMNet1.hPDU, false, szUID);
   }
   else
   {
      //enable it
      LEADDICOMNet1.SetImplementClass(LEADDICOMNet1.hPDU, true, UID_RT_DOSE_STORAGE);
      szUID = LEADDICOMNet1.GetImplementClass(LEADDICOMNet1.hPDU);
      MessageBox.Show(szUID);
   }
}