Share via


DiagramView.WndProc Method

Override the default WndProc so that we don't shutdown VS and launch Watson unless it's a critical exception. If it's not, then we just diplay the error message.

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

Syntax

'Declaration
<SecurityPermissionAttribute(SecurityAction.InheritanceDemand, Flags := SecurityPermissionFlag.UnmanagedCode)> _
Protected Overrides Sub WndProc ( _
    ByRef m As Message _
)
[SecurityPermissionAttribute(SecurityAction.InheritanceDemand, Flags = SecurityPermissionFlag.UnmanagedCode)]
protected override void WndProc(
    ref Message m
)
[SecurityPermissionAttribute(SecurityAction::InheritanceDemand, Flags = SecurityPermissionFlag::UnmanagedCode)]
protected:
virtual void WndProc(
    Message% m
) override
[<SecurityPermissionAttribute(SecurityAction.InheritanceDemand, Flags = SecurityPermissionFlag.UnmanagedCode)>]
abstract WndProc : 
        m:Message byref -> unit 
[<SecurityPermissionAttribute(SecurityAction.InheritanceDemand, Flags = SecurityPermissionFlag.UnmanagedCode)>]
override WndProc : 
        m:Message byref -> unit
protected override function WndProc(
    m : Message
)

Parameters

  • m
    Type: Message%

.NET Framework Security

See Also

Reference

DiagramView Class

Microsoft.VisualStudio.Modeling.Diagrams Namespace