通过


MachineException 构造函数(字符串,异常)

此构造函数初始化 MachineException 类的新实例。

命名空间:Microsoft.Windows.Kits.Hardware.ObjectModel

程序集:Microsoft.Windows.Kits.Hardware.ObjectModel(在 Microsoft.Windows.Kits.Hardware.ObjectModel 中)

用法

Visual Basic

Dim message As String

Dim except As Exception

Dim instance As New MachineException(message, except)

语法

Visual Basic

Public Sub New ( _

          message As String _

          except As Exception _

)

C#

public MachineException (

          string message

          Exception except

)

参数

message

表示异常消息的字符串。

except

异常对象。