GroupManager.UpdateGroupMembership Method (Guid, IList<Guid>, IList<Guid>)
Updates the membership of a user group.
Namespace: Microsoft.WindowsServerSolutions.Groups
Assembly: UserObjectModel (in UserObjectModel.dll)
Syntax
public void UpdateGroupMembership(
Guid groupId,
IList<Guid> membersToAdd,
IList<Guid> membersToRemove
)
public:
void UpdateGroupMembership(
Guid groupId,
IList<Guid>^ membersToAdd,
IList<Guid>^ membersToRemove
)
Public Sub UpdateGroupMembership (
groupId As Guid,
membersToAdd As IList(Of Guid),
membersToRemove As IList(Of Guid)
)
Parameters
groupId
Type: System.GuidThe GUID that identifies the group to update.
membersToAdd
Type: System.Collections.Generic.IList<Guid>A list of GUIDs that identify each member that is to be added to the group.
membersToRemove
Type: System.Collections.Generic.IList<Guid>A list of GUIDs that identify each member that is to be added to the group.
See Also
GroupManager Class
Microsoft.WindowsServerSolutions.Groups Namespace
Return to top