Novell.Directory.Ldap.Rfc2251.RfcFilter.endSubstrings C# (CSharp) Method

endSubstrings() public method

Completes a SubString filter component. @throws LdapLocalException Occurs when this is called out of sequence, or the substrings filter is empty.
public endSubstrings ( ) : void
return void
        public virtual void endSubstrings()
        {
            try
            {
                finalFound = false;
                Asn1SequenceOf substringSeq = (Asn1SequenceOf) filterStack.Peek();
                if (substringSeq.size() == 0)
                {
                    throw new LdapLocalException("Empty substring filter", LdapException.FILTER_ERROR);
                }
            }
            catch (System.InvalidCastException e)
            {
                throw new LdapLocalException("Missmatched ending of substrings", LdapException.FILTER_ERROR);
            }
            filterStack.Pop();
            return ;
        }