什么是 System.DirectoryServices?

如果您已经开发了用于访问 Active Directory 域服务的应用程序,则可能会对 ADSI 和 LDAP API 已相当熟悉。System.DirectoryServices 通过 .NET Framework 提供对 Active Directory 域服务的访问。使用 System.DirectoryServices,您可以通过 C# 和 Visual Basic 之类的编程语言编写在托管代码中访问目录服务(例如 Active Directory 域服务)的应用程序。

在 .NET Framework 中,目录对象的类和属性以及用于访问和处理这些对象的方法都包含在 System.DirectoryServices 命名空间内。System.DirectoryServices 中的类包装 ADSI 功能,但命名方案并不始终匹配其 ADSI 副本。

在您使用此向导时,请查找您要执行的任务,以了解要使用哪些类和方法。通过此方式,您将熟悉在 System.DirectoryServices 中使用的命名方案。

下图显示了不同目录 API 的分层方式,包括托管代码层。

托管代码

另请参见

参考

System.DirectoryServices
System.DirectoryServices.ActiveDirectory
System.DirectoryServices.Protocols

概念

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

其他资源

System.DirectoryServices.ActiveDirectory Namespace Overview
System.DirectoryServices.Protocols Namespace Overview

Send comments about this topic to Microsoft.

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