Description

Remove a named McDBRightsOwner from this McDBGroup

Return Type

None  

Syntax

object.RemoveMember RemoveMe

The RemoveMember Method syntax has these parts:

PartDescription
objectAn expression evaluating to an object of type McDBGroup.
RemoveMeRequired. A String value.

The string name of an McDBUser or McDBGroup instance to remove from this McDBGroup.

Remarks

McDBGroup.RemoveMember()

This method accepts the name of an McDBRightsOwner object, allowing removal of either an McDBUser or an McDBGroup this way. For this method to succeed, the McDBDatabase.LoggedUser must have McDBRightsOwner.IsAdministrator rights.

Exceptions

Error Value Description
E_ACCESSDENIED &H80070005 The McDBDatabase.LoggedUser does not have McDBRightsOwner.IsAdministrator privileges.
E_UNEXPECTED &H8001FFFF A framework error occurred while attempting to remove the specified member.
E_INVALIDARG &H80070057 The specified name is not a member of this McDBGroup.
E_FAIL &H80004005 This McDBGroup is the Everyone group, which may not be removed from. To delete a user or group use McDBRightsOwner.Delete.