MoveRootIOD Example for C#

//LEADDICOM1 is a DICOM Dataset defined outside this method
private void TestMoveRootIOD ( )
{
   try
   {
      LEADDICOM1.EnableMethodErrors = true;
      //Move to the Root IOD
      LEADDICOM1.MoveRootIOD();
      MessageBox.Show(LEADDICOM1.get_CurrentIOD().Name);
      //Move to the first Child IOD
      LEADDICOM1.MoveChildIOD();
      MessageBox.Show(LEADDICOM1.get_CurrentIOD().Name);
      //Move back to the Parent IOD
      LEADDICOM1.MoveParentIOD();
      MessageBox.Show(LEADDICOM1.get_CurrentIOD().Name);
      return;
   }
   catch
   {
      MessageBox.Show("Error");
   }
}