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

string [] lat::ServerData::GetRequiredAttrs ( string[]  objClasses ) [inline]

Gets a list of requried attributes for a list of given object classes.

Parameters:
objClassesArray of objectclass names
Returns:
An array of required attribute names

Definition at line 497 of file ServerData.cs.

            {           
                  if (objClasses == null)
                        return null;

                  List<string> retVal = new List<string> ();
                  LdapSchema schema = server.GetSchema ();

                  foreach (string oc in objClasses) {

                        LdapObjectClassSchema ocs = schema.getObjectClassSchema ( oc );
                        foreach (string c in ocs.RequiredAttributes)
                              if (!retVal.Contains (c))
                                    retVal.Add (c);
                  }

                  return retVal.ToArray ();
            }

Generated by  Doxygen 1.6.0   Back to index