Dela via


DesignerView.CommandException Event

Occurs when an exception is raised in a command.

Namespace:  Microsoft.Windows.Design.Interaction
Assembly:  Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)

Syntax

'Declaration
Public Event CommandException As EventHandler(Of CommandExceptionEventArgs)
'Usage
Dim instance As DesignerView 
Dim handler As EventHandler(Of CommandExceptionEventArgs)

AddHandler instance.CommandException, handler
public event EventHandler<CommandExceptionEventArgs> CommandException
public:
 event EventHandler<CommandExceptionEventArgs^>^ CommandException {
    void add (EventHandler<CommandExceptionEventArgs^>^ value);
    void remove (EventHandler<CommandExceptionEventArgs^>^ value);
}
JScript does not support events.

Remarks

If no handler is attached to this event, the command’s exception is unhandled.

.NET Framework Security

See Also

Reference

DesignerView Class

DesignerView Members

Microsoft.Windows.Design.Interaction Namespace

AdornerPanel

Other Resources

Walkthrough: Creating a Design-time Adorner

Adorner Architecture