0
我對我的C#項目有一個簡短的任務。我想讀出我們的活動目錄,並使用此:DirectoryEntry屬性
System.DirectoryServices.DirectorySearcher mySearcher = new System.DirectoryServices.DirectorySearcher(entry);
foreach (System.DirectoryServices.SearchResult resEnt in mySearcher.FindAll())
{
System.DirectoryServices.DirectoryEntry de = resEnt.GetDirectoryEntry();
try
{
myRow["eMail"] = de.Properties["Mail"].Value.ToString();
}
catch (Exception)
{ }
}
現在我想讀出其他屬性,希望你能給我的所有屬性的列表。
感謝
能不能再解釋這個做呢? –
請參閱[所有Active Directory屬性列表](http://msdn.microsoft.com/en-us/library/windows/desktop/ms675090%28v=vs.85%29.aspx) –