CodeThrowExceptionStatement 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化 CodeThrowExceptionStatement 类的新实例。
重载
| 名称 | 说明 |
|---|---|
| CodeThrowExceptionStatement() |
初始化 CodeThrowExceptionStatement 类的新实例。 |
| CodeThrowExceptionStatement(CodeExpression) |
使用指定的异常类型实例初始化类的新实例 CodeThrowExceptionStatement 。 |
CodeThrowExceptionStatement()
初始化 CodeThrowExceptionStatement 类的新实例。
public:
CodeThrowExceptionStatement();
public CodeThrowExceptionStatement();
Public Sub New ()
适用于
CodeThrowExceptionStatement(CodeExpression)
使用指定的异常类型实例初始化类的新实例 CodeThrowExceptionStatement 。
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
指示要引发的异常的 A CodeExpression 。