Novell.Directory.Ldap.LdapDN.isValid C# (CSharp) Method

isValid() public static method

Returns true if the string conforms to distinguished name syntax.
public static isValid ( System dn ) : bool
dn System String to evaluate fo distinguished name syntax. ///
return bool
        public static bool isValid(System.String dn)
        {
            try
            {
                new DN(dn);
            }
            catch (System.ArgumentException iae)
            {
                return false;
            }
            return true;
        }