public static bool isValid(System.String dn) { try { new DN(dn); } catch (System.ArgumentException iae) { return false; } return true; }