DialogBase.ProcessDialogKey Method
Verifies whether keys (such as TAB, ESCAPE, and RETURN) should be processed for the dialog box.
Namespace: Microsoft.VisualStudio.Modeling.Shell
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Shell.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Shell.10.0.dll)
Syntax
'Déclaration
<UIPermissionAttribute(SecurityAction.LinkDemand, Window := UIPermissionWindow.AllWindows)> _
Protected Overrides Function ProcessDialogKey ( _
keyData As Keys _
) As Boolean
[UIPermissionAttribute(SecurityAction.LinkDemand, Window = UIPermissionWindow.AllWindows)]
protected override bool ProcessDialogKey(
Keys keyData
)
[UIPermissionAttribute(SecurityAction::LinkDemand, Window = UIPermissionWindow::AllWindows)]
protected:
virtual bool ProcessDialogKey(
Keys keyData
) override
[<UIPermissionAttribute(SecurityAction.LinkDemand, Window = UIPermissionWindow.AllWindows)>]
abstract ProcessDialogKey :
keyData:Keys -> bool
[<UIPermissionAttribute(SecurityAction.LinkDemand, Window = UIPermissionWindow.AllWindows)>]
override ProcessDialogKey :
keyData:Keys -> bool
protected override function ProcessDialogKey(
keyData : Keys
) : boolean
Parameters
- keyData
Type: System.Windows.Forms.Keys
The Keys to process.
Return Value
Type: System.Boolean
true if the key should be processed; otherwise, false.
Remarks
This method makes sure that only critical exceptions are exposed to the base class. Any exceptions that reach the base class open the WinForms Unhandled Exception dialog box.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.