使用 System.DirectoryServices 的好处

使用 System.DirectoryServices 的好处包括:

  • 设计可完全在公共语言运行库参数内进行。System.DirectoryServices 充分利用了公共语言运行库的各项功能,例如垃圾回收、自定义索引器和字典 (Hashtable)。此外,还提供其他公共语言运行库功能,例如自动内存管理、有效部署、面向对象的框架、基于证据的安全性以及异常处理。
  • 与其他 .NET Framework 技术在行为上一致。因为 System.DirectoryServices 使用公共语言运行库功能,所以,可以采用一致且为大家所熟知的编程模型进行目录服务编程。
  • 简单。System.DirectoryServices 实现并完善了若干基本 ADSI 任务,以便实现更高效的应用程序开发。

另请参见

参考

System.DirectoryServices

概念

关于 System.DirectoryServices
System.DirectoryServices 命名空间概述

Send comments about this topic to Microsoft.

版权所有 (C) 2007 Microsoft Corporation。保留所有权利。