CommandExceptionEventArgs Constructor
Initializes a new instance of the CommandExceptionEventArgs class.
Namespace: Microsoft.Windows.Design.Interaction
Assembly: Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)
Syntax
'Declaration
Public Sub New ( _
command As ICommand, _
exception As Exception _
)
public CommandExceptionEventArgs(
ICommand command,
Exception exception
)
public:
CommandExceptionEventArgs(
ICommand^ command,
Exception^ exception
)
new :
command:ICommand *
exception:Exception -> CommandExceptionEventArgs
public function CommandExceptionEventArgs(
command : ICommand,
exception : Exception
)
Parameters
- command
Type: System.Windows.Input.ICommand
The command that raised the exception.
- exception
Type: System.Exception
The exception that the command threw.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | command or exception is nulla null reference (Nothing in Visual Basic). |
.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.
See Also
Reference
CommandExceptionEventArgs Class
Microsoft.Windows.Design.Interaction Namespace