共用方式為


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 設計工具擴充性