0
我想枚舉通過Active Directory架構,並不認爲我看到所有的屬性。有人可以看看並告訴我我要去哪裏嗎?如何通過Active Directory架構屬性枚舉?
objRoot = new DirectoryEntry("LDAP://" + serverName + ":" + port + "/RootDSE");
strSchemaNamingContext = objRoot.Properties[ "schemaNamingContext"].Value.ToString();
objSchema = new DirectoryEntry(String.Concat("LDAP://" + serverName + ":" + port + "/", strSchemaNamingContext));
foreach (DirectoryEntry schemaObjectToTest in objSchema.Children)
{
var rest = schemaObjectToTest.Properties["systemFlags"].Value;
}