共用方式為


叫用 ADSI

ADSI 介面可公開屬性 (如 IADsUser 介面屬性 LastName 與 Firstname) 與方法 (如 SetPassword)。如需有關 IADsUser 介面及其屬性與方法的詳細資訊,請參閱 MSDN Library (網址為 https://go.microsoft.com/fwlink/?LinkID=27252 (本頁面可能為英文)) 中的 IADsUser 介面、LastName 屬性、FirstName 屬性與 SetPassword 方法。

System.DirectoryServices 命名空間不包含 ADSI 介面定義的所有方法與屬性的包裝函式方法與屬性。若要存取在 System.DirectoryServices 命名空間中無對應的包裝函式方法的 ADSI 方法,請使用 Invoke 方法。對於屬性,請使用 InvokeMember 方法。本節提供使用這兩個選項的程式碼範例。

本節包括下列主題:

請參閱

參考

System.DirectoryServices
DirectoryEntry
Type

概念

進階程式設計主題

Send comments about this topic to Microsoft.

Copyright © 2007 by Microsoft Corporation.All rights reserved.