Partager via


ExistingElementEventManager.Add Method (Guid, Delegate)

Add a handler for events on a particular element.

Namespace:  Microsoft.VisualStudio.Modeling
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.10.0.dll)

Syntax

'Déclaration
Public Sub Add ( _
    elementId As Guid, _
    handler As Delegate _
)
public void Add(
    Guid elementId,
    Delegate handler
)
public:
void Add(
    Guid elementId, 
    Delegate^ handler
)
member Add : 
        elementId:Guid * 
        handler:Delegate -> unit 
public function Add(
    elementId : Guid, 
    handler : Delegate
)

Parameters

.NET Framework Security

See Also

Reference

ExistingElementEventManager Class

Add Overload

Microsoft.VisualStudio.Modeling Namespace