Description

Use the Attributes collection of another McDBNode.

Return Type

None  

Syntax

object.ShareAttributesOf SharingSource

The ShareAttributesOf Method syntax has these parts:

PartDescription
objectAn expression evaluating to an object of type McDBNode.
SharingSourceRequired. A McDBNode object.

The McDBNode that will share its Attributes with this McDBNode.

Remarks

Attributes of an McDBNode can be shared with other McDBNode instances using this method. Following this call, the McDBNode.Attributes collection will be the same as those of SharingSource.

Exceptions

Error Value Description
E_ACCESSDENIED &H80070005 The McDBDatabase.LoggedUser does not have McDBRight.Write permission in the Rights for this McDBNode.
E_UNEXPECTED &H8001FFFF A framework error occurred while accessing either this McDBNode or SharingSource.
E_INVALIDARG &H80070057 SharingSource is not a valid McDBNode instance.
CO_E_NOT_SUPPORTED &H80004021 This is an attribute (non-hierarchy) McDBNode. This operation is not allowed.

Notes

This operation is NOT the same as copying the existing attributes from one node to another, but rather is a true link. That is, as attributes are added, removed, or changed from either this McDBNode or the SharingSource, the other McDBNode is also immediately changed.