Share via


GroupManager Class

 

Manages user groups.

Namespace:   Microsoft.WindowsServerSolutions.Groups
Assembly:  UserObjectModel (in UserObjectModel.dll)

Inheritance Hierarchy

System.Object
  Microsoft.WindowsServerSolutions.Groups.GroupManager

Syntax

public class GroupManager : INotifyPropertyChanged, IDisposable
public ref class GroupManager : INotifyPropertyChanged, IDisposable
Public Class GroupManager
    Implements INotifyPropertyChanged, IDisposable

Constructors

Name Description
System_CAPS_pubmethod GroupManager()

Creates and initializes a new instance of the GroupManager class.

Properties

Name Description
System_CAPS_pubproperty Connected

Verifies whether the instance of GroupManager is connected to the Group provider.

Methods

Name Description
System_CAPS_pubmethod AddGroup(String, GroupDetailInfo)

Adds a user group account with the specified group name and group information.

System_CAPS_pubmethod AddGroupAsync(String, GroupDetailInfo)

Asynchronously adds a new user group account with the specified group name and group information.

System_CAPS_pubmethod Connect()

Establishes a connection between the GroupManager object and the group provider.

System_CAPS_pubmethod ConnectAsync()

Asynchronously establishes a connection between the GroupManager object and the group provider.

System_CAPS_pubmethod ConnectAsync(TimeSpan)

Asynchronously establishes a connection between the GroupManager object and the group provider with a specified timeout period.

System_CAPS_pubmethod Dispose()

Releases all resources that are used by the GroupManager object.

System_CAPS_protmethod Dispose(Boolean)

Releases all resources that are used by the GroupManager object.

System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetGroup(SecurityIdentifier)

Retrieves a Group object from the cache by SecurityIdentifier.

System_CAPS_pubmethod GetGroup(String)

Retrieves a Group object from the cache by group name.

System_CAPS_pubmethod GetGroups()

Retrieves a collection of Group objects.

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethod ReloadGroups()

Synchronizes the settings between the group provider and Active Directory Domain Services.

System_CAPS_pubmethod ReloadGroupsAsync()

Asynchronously synchronizes the settings between the group provider and Active Directory Domain Services.

System_CAPS_pubmethod RemoveGroup(Guid)

Removes the specified user group from the group provider.

System_CAPS_pubmethod RemoveGroupAsync(Guid)

Asynchronously removes a user group from the group provider.

System_CAPS_pubmethod ToString()

(Inherited from Object.)

System_CAPS_pubmethod UnregisterGroupEvent()

Removes the registration of a GroupManager event.

System_CAPS_pubmethod UpdateGroup(GroupInfo)

Updates information about a user group.

System_CAPS_pubmethod UpdateGroupAsync(GroupInfo)

Asynchronously updates information about a user group.

System_CAPS_pubmethod UpdateGroupMembership(Guid, IList<Guid>, IList<Guid>)

Updates the membership of a user group.

System_CAPS_pubmethod UpdateGroupMembershipAsync(Guid, IList<Guid>, IList<Guid>)

Asynchronously updates the membership of a user group.

Events

Name Description
System_CAPS_pubevent AddGroupRequestCompletedCallback

The callback to invoke during the event that is fired when there is a request to add a new user group to the group provider.

System_CAPS_pubevent ConnectRequestCompletedCallback

The callback to invoke during the event that is fired when there is a request to establish a connection between a GroupManager object and the group provider.

System_CAPS_pubevent ConnectTimeoutCallback

The callback to invoke during the ConnectTimeout event.

System_CAPS_pubevent GroupAddedCallback

The callback to invoke during the event that is fired when a group account is added to the group provider.

System_CAPS_pubevent GroupRemovedCallback

The callback to invoke during the event that is fired when a group account is removed from the group provider.

System_CAPS_pubevent GroupUpdatedCallback

The callback to invoke during the event that is fired when a group account is updated.

System_CAPS_pubevent PropertyChanged

The callback to invoke during the event that is fired when a property for a group account is changed.

System_CAPS_pubevent ReloadGroupsAsyncRequestCompleted

The callback to invoke during the event that is fired when there is a request to synchronize settings between the group provider and Active Directory Domain Services.

System_CAPS_pubevent RemoveGroupRequestCompletedCallback

The callback to invoke during the event that is fired when there is a request to remove a group account from the group provider.

System_CAPS_pubevent UpdateGroupRequestCompletedCallback

The callback to invoke during the event that is fired when there is a request to update a group account.

Thread Safety

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Microsoft.WindowsServerSolutions.Groups Namespace

Return to top