next() public method

Returns the next result as an LdapEntry. If automatic referral following is disabled or if a referral was not followed, next() will throw an LdapReferralException when the referral is received.
LdapException A general exception which includes an error /// message and an Ldap error code. /// LdapReferralException A referral was received and not /// followed. ///
public next ( ) : LdapEntry
return LdapEntry
コード例 #1
0
ファイル: LdapDirectory.cs プロジェクト: Dream123456/cxs
        private static LdapEntry[] toArray(LdapSearchResults results)
        {
            ArrayList entries;

            entries = new ArrayList();

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

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