Destroys an object or a specific version of the object. Prefer DestroyObjectEx as its parameter ObjectVersion supports unmanaged external repository objects.
Visual Basic |
---|
Public Sub DestroyObject( _ ByVal ObjID As ObjID, _ ByVal DestroyAllVersions As Boolean, _ ByVal ObjectVersion As Long _ ) |
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.