Share 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)
public event EventHandler<CommandExceptionEventArgs> CommandException
public:
 event EventHandler<CommandExceptionEventArgs^>^ CommandException {
    void add (EventHandler<CommandExceptionEventArgs^>^ value);
    void remove (EventHandler<CommandExceptionEventArgs^>^ value);
}
member CommandException : IEvent<EventHandler<CommandExceptionEventArgs>,
    CommandExceptionEventArgs>
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

Microsoft.Windows.Design.Interaction Namespace

AdornerPanel

Other Resources

Walkthrough: Creating a Design-time Adorner

Adorner Architecture