Description

Add a single McDBRightsOwner object (McDBUser or McDBGroup) to those having the the permissions described by the Read, Write, and Delete properties of this McDBRight.

Return Type

None  

Syntax

object.AddName NameToAdd

The AddName Method syntax has these parts:

PartDescription
objectAn expression evaluating to an object of type McDBRight.
NameToAddRequired. A String value.

A string of the McDBRightsOwner.Name to add to those having the right (combination) described by this McDBRight.

Remarks

If NameToAdd contains an invalid McDBRightsOwner.Name, it will be ignored, and this method will silently return E_INVALIDARG.

Exceptions

Error Value Description
E_INVALIDARG &H80070057 Rights other than Full Control (Read, Write and Delete) have been specified for the Administrators group. Administrators always have Full Control over all McDBNode objects.
E_FAIL &H80004005 This McDBRight represents the rights of a McDBRightsOwner to Unsecure McDBNode instances. It is not valid to use this method under this condition, as it does not represent the rights of more than one McDBRightsOwner.