示例#1
0
        public override RoleDefinition GetRoleDefinition(string uniqueName)
        {
            AdRoleDefinition r = new AdRoleDefinition();

            r.Load(Load(uniqueName));

            return(new RoleDefinition(r));
        }
示例#2
0
        public override IEnumerator <RoleDefinition> GetRoleDefinitions(IEnumerable <string> uniqueNames, Application application)
        {
            using (LdapConnection conn = GetConnection())
            {
                foreach (var item in uniqueNames)
                {
                    AdRoleDefinition a = new AdRoleDefinition();
                    a.Load(Load(item, conn));

                    yield return(new RoleDefinition(a, application));
                }
            }
        }