共用方式為


DiagramView.WndProc 方法

覆寫 WndProc 的預設值,以便我們不要關機 VS 並啟動 Watson,除非它是嚴重的例外狀況。 如果不是,那麼我們只是 diplay 的錯誤訊息。

命名空間:  Microsoft.VisualStudio.Modeling.Diagrams
組件:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0 (在 Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0.dll 中)

語法

'宣告
<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
)

參數

.NET Framework 安全性

請參閱

參考

DiagramView 類別

Microsoft.VisualStudio.Modeling.Diagrams 命名空間