Logo Search packages:      
Sourcecode: lat version File versions  Download package

string [] lat::ServerData::GetAttributeValuesFromEntry ( LdapEntry  le,
string[]  attrs 
) [inline]

Gets the value of the given attribute for the given entry.

Parameters:
leLdapEntry
attrsList of attributes to lookup
Returns:
A list of attribute values

Definition at line 246 of file ServerData.cs.

            {
                  if (le == null || attrs == null)
                        throw new ArgumentNullException ();

                  List<string> retVal = new List<string> ();

                  foreach (string n in attrs) {

                        LdapAttribute la = le.getAttribute (n);

                        if (la != null)
                              retVal.Add (la.StringValue);
                        else
                              retVal.Add ("");
                  }

                  return retVal.ToArray ();
            }

Generated by  Doxygen 1.6.0   Back to index