I can get a collection of access rules for an Active Directory object using code like
ActiveDirectorySecurity ads = directoryEntry.ObjectSecurity; AuthorizationRuleCollection arc = ads.GetAccessRules(true, true, typeof(NTAccount)); foreach (ActiveDirectoryAccessRule adar in arc) {
However, I would like to know if each rule is one of the subtypes of ActiveDirectoryAccessRule, such as PropertyAccessRule.
Is it possible? I do not see the properties of the class that provides this information.
source share