Please note : This help page is not for the latest version of Enterprise Architect. The latest help can be found here.
Topic |
Prev | Next |
MDG_Disconnect
Add-Ins can use MDG_Disconnect to respond to user requests to disconnect the model branch from an external project.
This function is called when the user attempts to disconnect an associated external project. The Add-In is required to delete the details of the connection.
Syntax
Function MDG_Disconnect (Repository As EA.Repository, PackageGuid As String) As Long
The MDG_Disconnect function syntax contains these parameters.
Parameter |
Type |
See also |
---|---|---|
PackageGuid |
String Direction: IN Description: The GUID identifying the Enterprise Architect Package sub-tree that is controlled by the Add-In. |
|
Repository |
EA.Repository Direction: IN Description: An EA.Repository object representing the currently open Enterprise Architect model. Poll its members to retrieve model data and user interface status information. |
Repository Class |
Return Value
Returns a non-zero to indicate that a disconnection has occurred enabling Enterprise Architect to update the user interface. A zero indicates that the user has not disconnected from an external project.
Learn more