Description

Disable security on this McDBDatabase.

Return Type

None  

Syntax

object.DisableSecurity

The DisableSecurity Method syntax has these parts:

PartDescription
objectAn expression evaluating to an object of type McDBDatabase.

Remarks

When successful, this method will permanently remove all security information from this McDBDatabase, including defined McDBUsers, McDBGroups, and McDBNode.Rights.

Exceptions

Error Value Description
CO_E_ATTEMPT_TO_CREATE_OUTSIDE_CLIENT_CONTEXT &H80004024 This McDBDatabase is not Open.
E_UNEXPECTED &H8001FFFF A framework error occurred disabling security. Nothing is done.
E_ACCESSDENIED &H80070005 The LoggedUser is not an Administrator or the McDBDatabase was opened ReadOnly.

Notes

This McDBDatabase MUST BE OPEN with exclusive access when this method is called. This method requires the LoggedUser to have the McDBRightsOwner.IsAdministrator right to succeed. If this method fails for any reason, nothing is done and the database is unchanged.