Description

Commit changes made to an McDBRight representing access rights to Unsecure database objects.

Return Type

None  

Syntax

object.Apply

The Apply Method syntax has these parts:

PartDescription
objectAn expression evaluating to an object of type McDBRight.

Remarks

McDBRight objects are transient, and changes are not actually committed until their Owner commits them. Since an McDBRight representing access to Unsecure objects does not have an Owner, this method commits changes made to an McDBRight of this type.

Exceptions

Error Value Description
E_ACCESSDENIED &H80070005 The McDBDatabase.LoggedUser is not a McDBRightsOwner.IsAdministrator.
E_FAIL &H80004005 This McDBRight represents a rights combination of a Owner McDBRights object. That is, the access rights represented in an McDBNode.Rights object. It is not valid to use this method under this condition, as the application of all of the McDBRights.Item rights are applied simultaneously using McDBRights.Apply.