CommandExceptionEventArgs 构造函数

初始化 CommandExceptionEventArgs 类的新实例。

命名空间:  Microsoft.Windows.Design.Interaction
程序集:  Microsoft.Windows.Design.Interaction(在 Microsoft.Windows.Design.Interaction.dll 中)

语法

声明
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
)

参数

异常

异常 条件
ArgumentNullException

command 或 exception 为 nullnull 引用(在 Visual Basic 中为 Nothing)。

.NET Framework 安全性

请参见

参考

CommandExceptionEventArgs 类

Microsoft.Windows.Design.Interaction 命名空间

其他资源

WPF 设计器扩展性