private chkResultCode ( LdapMessageQueue queue, LdapConstraints cons, LdapResponse response ) : void | ||
queue | LdapMessageQueue | - the message queue of the current response /// /// |
cons | LdapConstraints | - the constraints that apply to the request /// /// |
response | LdapResponse | - the LdapResponse to check /// |
Результат | void |
private void chkResultCode(LdapMessageQueue queue, LdapConstraints cons, LdapResponse response)
{
if ((response.ResultCode == LdapException.REFERRAL) && cons.ReferralFollowing)
{
// Perform referral following and return
System.Collections.ArrayList refConn = null;
try
{
chaseReferral(queue, cons, response, response.Referrals, 0, false, null);
}
finally
{
releaseReferralConnections(refConn);
}
}
else
{
// Throws exception for non success result
response.chkResultCode();
}
return ;
}