Compartilhar via


ConnectAction.OnContextMenuRequested Method

Should cancel connect action on context menu as it throws exceptions otherwise because target and source elements could be null in this case.

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

Syntax

'Declaração
Protected Overrides Sub OnContextMenuRequested ( _
    e As DiagramMouseEventArgs _
)
protected override void OnContextMenuRequested(
    DiagramMouseEventArgs e
)
protected:
virtual void OnContextMenuRequested(
    DiagramMouseEventArgs^ e
) override
abstract OnContextMenuRequested : 
        e:DiagramMouseEventArgs -> unit 
override OnContextMenuRequested : 
        e:DiagramMouseEventArgs -> unit 
protected override function OnContextMenuRequested(
    e : DiagramMouseEventArgs
)

Parameters

.NET Framework Security

See Also

Reference

ConnectAction Class

Microsoft.VisualStudio.Modeling.Diagrams Namespace