CodeThrowExceptionStatement 构造函数
定义
初始化 CodeThrowExceptionStatement 类的新实例。Initializes a new instance of the CodeThrowExceptionStatement class.
重载
| CodeThrowExceptionStatement() |
初始化 CodeThrowExceptionStatement 类的新实例。Initializes a new instance of the CodeThrowExceptionStatement class. |
| CodeThrowExceptionStatement(CodeExpression) |
用指定的异常类型实例初始化 CodeThrowExceptionStatement 类的新实例。Initializes a new instance of the CodeThrowExceptionStatement class with the specified exception type instance. |
CodeThrowExceptionStatement()
初始化 CodeThrowExceptionStatement 类的新实例。Initializes a new instance of the CodeThrowExceptionStatement class.
public:
CodeThrowExceptionStatement();
public CodeThrowExceptionStatement ();
Public Sub New ()
适用于
CodeThrowExceptionStatement(CodeExpression)
用指定的异常类型实例初始化 CodeThrowExceptionStatement 类的新实例。Initializes a new instance of the CodeThrowExceptionStatement class with the specified exception type instance.
public:
CodeThrowExceptionStatement(System::CodeDom::CodeExpression ^ toThrow);
public CodeThrowExceptionStatement (System.CodeDom.CodeExpression toThrow);
new System.CodeDom.CodeThrowExceptionStatement : System.CodeDom.CodeExpression -> System.CodeDom.CodeThrowExceptionStatement
Public Sub New (toThrow As CodeExpression)
参数
- toThrow
- CodeExpression
CodeExpression,指示要引发的异常。A CodeExpression that indicates the exception to throw.