Share via


C# 程式碼範例快速清單

本主題包含《使用 System.DirectoryServices》指南所含所有 C# 程式碼範例的連結。

  • 繫結字串
    使用 DirectoryEntry 物件繫結至物件。
  • DirectoryEntry 物件
    在繫結到目錄內某項目的記憶體中建立 DirectoryEntry 物件,並為該目錄項目寫入路徑、名稱及 GUID。
  • 建立群組
    建立新群組、網域本機群組及不安全群組。
  • 取得搜尋結果
    使用 SearchResult 與 SearchResultCollection 類別來擷取搜尋結果。
  • 搜尋目錄
    使用 DirectorySearcher 類別搭配 FindAll 方法來搜尋目錄。

請參閱

概念

使用 System.DirectoryServices

Send comments about this topic to Microsoft.

Copyright © 2007 by Microsoft Corporation.All rights reserved.