Enterprise Architect Add-in Framework Documentation
MDG_Disconnect enables the Add-In 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. Also look at MDG_Connect.

Namespace: EAAddinFramework
Assembly: EAAddinFramework (in EAAddinFramework.dll) Version: 1.0.4064.9398

Syntax

C#
public virtual long MDG_Disconnect(
	Repository Repository,
	string PackageGuid
)
Visual Basic
Public Overridable Function MDG_Disconnect ( _
	Repository As Repository, _
	PackageGuid As String _
) As Long
Visual C++
public:
virtual long long MDG_Disconnect(
	Repository^ Repository, 
	String^ PackageGuid
)

Parameters

Repository
Type: Repository
An EA.Repository object representing the currently open Enterprise Architect model. Poll its members to retrieve model data and user interface status information.
PackageGuid
Type: System..::..String
The GUID identifying the Enterprise Architect package sub-tree that is controlled by the Add-In.

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.

See Also