我怎么看到
所属论坛:  .NET技术 C# 
是不是bug

解决方案 »

  1.   

    嘿嘿!! brightheroes 说明你的视力没问题~~我刚转移完!
      

  2.   

    wwl1981(小刀) 这家伙动作够快的,查点就把分给了他!
      

  3.   

    为防止误解,我将部分代码贴出来:
    DirectoryEntry entry = new
                           DirectoryEntry("LDAP://dev.xxx.com");
    try
    {
      DirectorySearcher search = new DirectorySearcher(entry);
      search.Filter = "(SAMAccountName=administrator)";
      search.PropertiesToLoad.Add("Name");
      search.PropertiesToLoad.Add("displayName");
      SearchResult result = search.FindOne();
      if( result != null )
      {
        Console.WriteLine("User found");
        foreach( string key in result.Properties.PropertyNames )
        {
          // Each property contains a collection of its own
          // that may contain multiple values
          foreach( Object propValue in  result.Properties[key] )
          {
            Console.WriteLine(key + " = " + propValue);
          }
        }
      }
      else
      {
        Console.WriteLine("User not found");
      }
    }
    catch( Exception ex )
    {
      throw new Exception("User not authenticated: " + ex.Message);
    }
    Console.ReadLine();
      

  4.   

    不是动作快,是我刚到水圆就看到acewang领分的帖子。以为大哥在水圆也有人气?进来看看。!