注册本站  论坛  繁體中文

电脑技巧
手机 | MP3 | MP4 | 显卡 | 主板 | 显示器 | 光存储 | 笔记本 | 网络设备 | 移动存储 | 数码相机
键鼠 | CPU | 音箱 | GPS | 电视 | 服务器 | 投影机 | 机箱电源 | 品牌电脑 | 办公打印 |
| 网站首页 | Cisco | Windows | Linux | Java | Dotnet | Oracle | 网页设计 | 平面设计 | 安全 | 软件应用 | 电脑维修 | 办公维修 |
您现在的位置: 电脑技巧 >> 平面设计 >> Director >> 平面设计正文

访问win2000 Active directory信息的代码

文章来源:Chinaitlab收集整理 作者:佚名 更新时间:2007-11-16 16:52:49 【 】 【加入收藏

using System;
using System.DirectoryServices;  

namespace ActiveDirectory
{

  /// <summary>
  /// Summary description for Class1.
  /// </summary>

class Class1
  {
    static void Main (string[] args)
    {
        //Note : microsoft is the name of my domain for testing purposes.
        DirectoryEntry entry = new DirectoryEntry("LDAP://microsoft");
        System.DirectoryServices.DirectorySearcher mySearcher = new
        System.DirectoryServices.DirectorySearcher(entry);
        mySearcher.Filter = ("(objectClass=*)");
        Console.WriteLine("Active Directory Information"); 
        Console.WriteLine("===========================================");   
 

       foreach(System.DirectoryServices.SearchResult resEnt
                  in mySearcher.FindAll())
        {
        Console.WriteLine( resEnt.GetDirectoryEntry().Name.ToString() );
        Console.WriteLine( resEnt.GetDirectoryEntry().Path.ToString() );
        Console.WriteLine( resEnt.GetDirectoryEntry().NativeGuid.ToString() );
      Console.WriteLine("===========================================");         
  }
     }
   }
}  

 

  • 上一篇平面设计:

  • 下一篇平面设计:
  • 最 新 热 门
     利用Photoshop自定义画笔制作逼真的水泡
     Photoshop制作荼蘼花开典雅人物签名特效
     Photoshop轻松制作MM迷惘梦想意境签名照片
     Photoshop的LAB模式美化风景婚纱照片
     非主流PS教程:减少图片杂色渲染照片个性色彩
     详细讲解用Photohop为MM调色简单磨皮
     Photohop教程:处理MM发丝及脸部美容
     PS历史快照为MM化妆,非主流效果制作
     Photoshop滤镜制作装饰MM照片的小像框
     Photoshop照片处理教程:美女在期盼什么?
    最 新 推 荐
     灯光照明效果的Vray教程
     三维设计专用技术名词解释
     DIRECTOR去背技法步步高
     交换动画特效制作
     溶解过渡特效制作
     跟踪动画特效制作
     幻影动画特效制作
     图像的扭曲制作
     Director8新手上路--绘图工具
     Director8新手上路--快速入门
    相 关 文 章

    PS制作Windows Vista风格的漂亮图标的教程
    photoshop制作Windows Vista风格图标
    Authorware实战开发专题之制作Windows标准菜…
    怎样在AW中调用WINDOWS程序
    Director制作具有Win XP 风格的菜单
    Director和San Switch的区别?
    Director Lingo应用之repeat with
    Director 制作具有Win XP 风格的菜单
    3dmax中创建wildtangent
    在3dmax中创建wildtangent材质

    | 设为首页 | 加入收藏 | 联系站长 | 友情链接 | 版权申明 | 网站公告

     

    Copyright 2006-2008 pcjx.com All Rights Reserved
    电脑技巧 版权所有 粤ICP备06059145号 地图
    本网站所有内容未经许可不得转载或做其他使用