Enterprise Architect Add-in Framework Documentation
EA_OnPreDeleteMethod notifies Add-Ins that an method is to be deleted from the model. It enables Add-Ins to permit or deny deletion of the method. This event occurs when a user deletes an method from the Project Browser or on a diagram. The notification is provided immediately before the method is deleted, so that the Add-In can disable deletion of the method.

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

Syntax

C#
public virtual bool EA_OnPreDeleteMethod(
	Repository Repository,
	EventProperties Info
)
Visual Basic
Public Overridable Function EA_OnPreDeleteMethod ( _
	Repository As Repository, _
	Info As EventProperties _
) As Boolean
Visual C++
public:
virtual bool EA_OnPreDeleteMethod(
	Repository^ Repository, 
	EventProperties^ Info
)

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.
Info
Type: EventProperties
Contains the following EventProperty object for the Method to be deleted: - MethodID: A long value corresponding to Method.MethodID.

Return Value

Return True to enable deletion of the method from the model. Return False to disable deletion of the method.

See Also