public bool ConfigDeleteProperty(string AttributeName, SwDMConfiguration14 swCfg)
 {
     try
     {
         if (ConfigPropertyExists(AttributeName, swCfg))
         {
             return swCfg.DeleteCustomProperty(AttributeName);
         }
         return false;
     }
     catch
     {
         return false;
     }
 }
 private Boolean clearProperty(Array names, SwDMConfiguration14 cfg)
 {
     Boolean result = false;
     if (names != null && names.Length > 0)
     {
         foreach (String name in names)
         {
             if (cfg == null)
             {
                 if (doc.DeleteCustomProperty(name))
                     result = true;
             }
             else if (cfg.DeleteCustomProperty(name))
             {
                 result = true;
             }
         }
     }
     return result;
 }