Description

Remove an McDBRightsOwner from this collection.

Return Type

None  

Syntax

object.Remove Index

The Remove Method syntax has these parts:

PartDescription
objectAn expression evaluating to an object of type McDBGroups.
IndexRequired. A Variant value.

The string [login/group] McDBRightsOwner.Name or long 0-based Index of the member to remove from this collection.

Remarks

Remove() - Remove Member from collection method

This method is context sensitive. It may NOT be called on the global McDBUsers and McDBGroups properites, McDBDatabase.Users and McDBDatabase.Groups, respectively. To remove (delete) an McDBUser or McDBGroup from an McDBDatabase, use the McDBRightsOwner.Delete() method.

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 McDBRightsOwner from this collection.
CO_E_ATTEMPT_TO_CREATE_OUTSIDE_CLIENT_CONTEXT &H80004024 This McDBRightsOwners object is one of the global collections: McDBDatabase.Users or McDBDatabase.Groups.
E_INVALIDARG &H80070057 The specified McDBRightsOwner is not in this collection, or is the Everyone group, which cannot be removed.