Novell.Directory.Ldap.LdapSearchResults.hasMore C# (CSharp) Method

hasMore() public method

Reports if there are more search results.
public hasMore ( ) : bool
return bool
        public virtual bool hasMore()
        {
            bool ret = false;
            if ((entryIndex < entryCount) || (referenceIndex < referenceCount))
            {
                // we have data
                ret = true;
            }
            else if (completed == false)
            {
                // reload the Vector by getting more results
                resetVectors();
                ret = (entryIndex < entryCount) || (referenceIndex < referenceCount);
            }
            return ret;
        }

Usage Example

示例#1
0
        private static LdapEntry[] toArray(LdapSearchResults results)
        {
            ArrayList entries;

            entries = new ArrayList();

            while(results.hasMore())
                entries.Add(results.next());

            return((LdapEntry[]) entries.ToArray(typeof(LdapEntry)));
        }