while(id.MoveNext())
{
string attribute=(string)id.Key;
- LdapAttribute attr=null;
ResultPropertyValueCollection rpVal=
new ResultPropertyValueCollection();
if(Rproperties[attribute].Count==1)
{
String val = (String)Rproperties[attribute].Value;
-// Console.WriteLine("attribute:" + attribute + "value:" + val);
rpVal.Add(val);
}
- else
+ else if (Rproperties[attribute].Count > 1)
{
Object[] vals=(Object [])Rproperties[attribute].Value;
// String[] aStrVals= new String[_Entry.Properties[attribute].Count];
rpVal.AddRange(vals);
-// Console.WriteLine("attribute1:" + attribute + "value:" +vals[0]);
}
_Properties.Add(attribute,rpVal);
}
{
InitBlock();
_Entry = entry;
+ _Path = entry.Path;
}
internal SearchResult(DirectoryEntry entry, PropertyCollection props)
{
InitBlock();
_Entry = entry;
+ _Path = entry.Path;
_Rproperties = props;
}
/// <summary>