使用 System.DirectoryServices 的優點
使用 System.DirectoryServices 的優點如下:
- 完全以 Common Language Runtime 參數設計。System.DirectoryServices 運用了許多 Common Language Runtime 功能,如記憶體回收、自訂索引子以及字典 (Hashtable)。它還提供其他 Common Language Runtime 功能,例如自動記憶體管理、有效的部署、物件導向的架構、以辨識項為基礎的安全性,以及例外狀況處理。
- 與其他 .NET Framework 技術一致的行為。由於 System.DirectoryServices 使用 Common Language Runtime 功能,因此可使用一致且熟悉的程式設計模型來進行目錄服務程式設計。
- 簡單。System.DirectoryServices 實作並整合數個基本 ADSI 工作,使應用程式開發更有效率且更有效。
請參閱
參考
概念
關於 System.DirectoryServices
System.DirectoryServices 命名空間概觀
Send comments about this topic to Microsoft.
Copyright © 2007 by Microsoft Corporation.All rights reserved.