SetUIDName example for C#

//LEADDICOM1 is a DICOM Dataset defined outside this method
private void TestSetUIDName()
{
   try
   {
      LEADDICOM1.EnableMethodErrors = true;

      //move to the selected UID
      LEADDICOM1.FindIndexUID(13);

      //change the name
      LEADDICOM1.SetUIDName("New UID Name");
      return;
   }
   catch
   {
      MessageBox.Show("Error");
   }
}