Description

Remove custom security rules on this McDBNode.

Return Type

None  

Syntax

object.UnSecure

The UnSecure Method syntax has these parts:

PartDescription
objectAn expression evaluating to an object of type McDBNode.

Remarks

Access security to McDBNode instances are governed by rules defined by its Rights object. If the Rights object is not set, default access permissions (for “unsecure” objects, McDBRightsOwner.UnsecObjRights) apply. Once set, McDBNode.Rights cannot be reset to these default permissions. The McDBRights manipulation API will always produce a customly secured McDBNode. Even if the custom security rule set matchs the current permissions granted through the combination of all the McDBRightsOwner.UnsecObjRights objects, the McDBNode is NOT unsecure. That is, changes to McDBRightsOwner.UnsecObjRights objects will NOT apply to the (still secure) McDBNode. This method is the only way to return an McDBNode to its initial, “unsecure” state.

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 this McDBNode.

Notes

This method will succeed on McDBNode instances that exist in unsecure databases and on McDBNode instances that are already unsecure. (Nothing will be done in either case).