Destroys the specified object, or a specific version of the object.
| Visual Basic |
|---|
Public Sub DestroyObjectEx( _ ByVal ObjID As ObjID, _ ByVal DestroyAllVersions As Boolean, _ ByVal ObjectVersion As ObjVerVersion _ ) |
If you want to destroy the object altogether, in other words set the DestroyAllVersions parameter to "true", the ObjectVersion parameter must be set to "-1".
If DestroyAllVersions is set to "false", ObjectVersion must point to a valid version.