1 instantiation of GroupPrincipal
System.DirectoryServices.AccountManagement (1)
System\DirectoryServices\AccountManagement\Group.cs (1)
241GroupPrincipal g = new GroupPrincipal(ctx);
102 references to GroupPrincipal
System.DirectoryServices.AccountManagement (102)
System\DirectoryServices\AccountManagement\AD\ADDNLinkedAttrSet.cs (9)
747if (foreignPrincipal is GroupPrincipal) 766_foreignGroups.Add((GroupPrincipal)foreignPrincipal); 816GroupPrincipal foreignGroup = _foreignGroups[0]; 846GroupPrincipal foreignGroup = _foreignGroups[0]; 1085_foreignGroups = new List<GroupPrincipal>(); 1252foreach (GroupPrincipal gp in _foreignGroups) 1312private List<GroupPrincipal> _foreignGroups = new List<GroupPrincipal>(); 1380public List<GroupPrincipal> foreignGroups;
System\DirectoryServices\AccountManagement\AD\ADStoreCtx.cs (8)
266TypeToLdapDict.Add(typeof(GroupPrincipal), groupPrincipalPropList); 737if (principalType.IsSubclassOf(typeof(GroupPrincipal)) || 1294BuildPropertySet(typeof(GroupPrincipal), searchers[index].PropertiesToLoad); 1625internal override BookmarkableResultSet GetGroupMembership(GroupPrincipal g, bool recursive) 1687BuildPropertySet(typeof(GroupPrincipal), dsMembers[0].PropertiesToLoad); 1725internal override bool IsMemberOfInStore(GroupPrincipal g, Principal p) 1865internal override bool CanGroupBeCleared(GroupPrincipal g, out string explanationForFailure) 1939internal override bool CanGroupMemberBeRemoved(GroupPrincipal g, Principal member, out string explanationForFailure)
System\DirectoryServices\AccountManagement\AD\ADStoreCtx_LoadStore.cs (9)
54else if (principalType == typeof(GroupPrincipal)) 72if (principalType.IsSubclassOf(typeof(GroupPrincipal)) || 487BuildPropertySet(typeof(GroupPrincipal), ds.PropertiesToLoad); 513(principalType == typeof(Principal) || principalType == typeof(GroupPrincipal) || principalType.IsSubclassOf(typeof(GroupPrincipal)))) 560if (principalType == typeof(Principal) || principalType == typeof(GroupPrincipal) || principalType.IsSubclassOf(typeof(GroupPrincipal))) 1533(memberType != typeof(GroupPrincipal)) && (!memberType.IsSubclassOf(typeof(GroupPrincipal))) &&
System\DirectoryServices\AccountManagement\AD\ADStoreCtx_Query.cs (3)
61else if (p.IsSubclassOf(typeof(GroupPrincipal))) 63baseType = typeof(GroupPrincipal); 193else if (principalType == typeof(GroupPrincipal))
System\DirectoryServices\AccountManagement\AD\SDSUtils.cs (8)
39else if (typeof(GroupPrincipal) == principalType) 41p = GroupPrincipal.MakeGroup(owningContext); 57p = GroupPrincipal.MakeGroup(owningContext); 97else if (typeof(GroupPrincipal) == principalType) 99p = GroupPrincipal.MakeGroup(owningContext); 115p = GroupPrincipal.MakeGroup(owningContext); 212(!(p is GroupPrincipal)) && 296if ((p is GroupPrincipal) && (p.GetChangeStatusForProperty(PropertyNames.GroupMembers)))
System\DirectoryServices\AccountManagement\AuthZSet.cs (6)
243GroupPrincipal g = GroupPrincipal.MakeGroup(_userStoreCtx.OwningContext); 253GroupPrincipal group = null; 358group = GroupPrincipal.FindByIdentity(ctx, IdentityType.Sid, sidObj.ToString()); 384group = (GroupPrincipal)((ADStoreCtx)ctx.QueryCtx).FindPrincipalBySID(typeof(GroupPrincipal), ir, true);
System\DirectoryServices\AccountManagement\constants.cs (1)
136{ typeof(GroupPrincipal), new ArrayList(1) { PropertyNames.GroupMembers } }
System\DirectoryServices\AccountManagement\Context.cs (2)
1241Debug.Assert(t == typeof(System.DirectoryServices.AccountManagement.GroupPrincipal) || t.IsSubclassOf(typeof(System.DirectoryServices.AccountManagement.GroupPrincipal)));
System\DirectoryServices\AccountManagement\Group.cs (8)
176public static new GroupPrincipal FindByIdentity(PrincipalContext context, string identityValue) 178return (GroupPrincipal)FindByIdentityWithType(context, typeof(GroupPrincipal), identityValue); 181public static new GroupPrincipal FindByIdentity(PrincipalContext context, IdentityType identityType, string identityValue) 183return (GroupPrincipal)FindByIdentityWithType(context, typeof(GroupPrincipal), identityType, identityValue); 239internal static GroupPrincipal MakeGroup(PrincipalContext ctx) 241GroupPrincipal g = new GroupPrincipal(ctx);
System\DirectoryServices\AccountManagement\Principal.cs (3)
543public bool IsMemberOf(GroupPrincipal group) 565GroupPrincipal g = GroupPrincipal.FindByIdentity(context, identityType, identityValue);
System\DirectoryServices\AccountManagement\PrincipalCollection.cs (5)
233public void Add(GroupPrincipal group) 356public bool Remove(GroupPrincipal group) 551public bool Contains(GroupPrincipal group) 609internal PrincipalCollection(BookmarkableResultSet results, GroupPrincipal owningGroup) 650private readonly GroupPrincipal _owningGroup;
System\DirectoryServices\AccountManagement\SAM\SAMMembersSet.cs (7)
288if (!_recursive || !(foreignPrincipal is GroupPrincipal)) 306_foreignGroups.Add((GroupPrincipal)foreignPrincipal); 325GroupPrincipal foreignGroup = _foreignGroups[0]; 505_foreignGroups = new List<GroupPrincipal>(); 591private List<GroupPrincipal> _foreignGroups = new List<GroupPrincipal>(); 605public List<GroupPrincipal> foreignGroups;
System\DirectoryServices\AccountManagement\SAM\SAMStoreCtx.cs (7)
50s_maskMap.Add(typeof(GroupPrincipal), ObjectMask.Group); 92else if (principalType == typeof(GroupPrincipal)) 648List<string> schemaTypes = GetSchemaFilter(typeof(GroupPrincipal)); 747internal override BookmarkableResultSet GetGroupMembership(GroupPrincipal g, bool recursive) 773internal override bool IsMemberOfInStore(GroupPrincipal g, Principal p) 781internal override bool CanGroupBeCleared(GroupPrincipal g, out string explanationForFailure) 790internal override bool CanGroupMemberBeRemoved(GroupPrincipal g, Principal member, out string explanationForFailure)
System\DirectoryServices\AccountManagement\SAM\SAMStoreCtx_LoadStore.cs (17)
48else if (principalType == typeof(GroupPrincipal) || principalType.IsSubclassOf(typeof(GroupPrincipal))) 90else if (principalType == typeof(GroupPrincipal)) 238else if (principalType == typeof(GroupPrincipal)) 296else if (principalType == typeof(GroupPrincipal)) 411if (principalType == typeof(Principal) || principalType == typeof(GroupPrincipal) || principalType.IsSubclassOf(typeof(GroupPrincipal))) 549else if (principalType == typeof(GroupPrincipal) || principalType.IsSubclassOf(typeof(GroupPrincipal))) 552principalType = typeof(GroupPrincipal); 603else if ((principalType == typeof(GroupPrincipal)) && SAMUtils.IsOfObjectClass(de, "Group")) 646{PropertyNames.PrincipalDescription, typeof(GroupPrincipal), "Description", new FromWinNTConverterDelegate(StringFromWinNTConverter), new ToWinNTConverterDelegate(StringToWinNTConverter)}, 662{PropertyNames.GroupIsSecurityGroup, typeof(GroupPrincipal), "*******", new FromWinNTConverterDelegate(GroupTypeFromWinNTConverter), new ToWinNTConverterDelegate(GroupTypeToWinNTConverter)}, 663{PropertyNames.GroupGroupScope, typeof(GroupPrincipal), "groupType", new FromWinNTConverterDelegate(GroupTypeFromWinNTConverter), new ToWinNTConverterDelegate(GroupTypeToWinNTConverter)}, 697{PropertyNames.PrincipalDisplayName, typeof(GroupPrincipal), null, null, new ToWinNTConverterDelegate(ExceptionToWinNTConverter)}, 1073(memberType != typeof(GroupPrincipal)) && (!memberType.IsSubclassOf(typeof(GroupPrincipal))))
System\DirectoryServices\AccountManagement\SAM\SAMStoreCtx_Query.cs (2)
118else if (principalType == typeof(GroupPrincipal) || principalType.IsSubclassOf(typeof(GroupPrincipal)))
System\DirectoryServices\AccountManagement\StoreCtx.cs (5)
145internal abstract BookmarkableResultSet GetGroupMembership(GroupPrincipal g, bool recursive); 149internal abstract bool IsMemberOfInStore(GroupPrincipal g, Principal p); 153internal abstract bool CanGroupBeCleared(GroupPrincipal g, out string explanationForFailure); 157internal abstract bool CanGroupMemberBeRemoved(GroupPrincipal g, Principal member, out string explanationForFailure); 347if (p is GroupPrincipal)
System\DirectoryServices\AccountManagement\Utils.cs (2)
692GroupPrincipal g = GroupPrincipal.MakeGroup(ctx);