CodeThrowExceptionStatement 构造函数

定义

初始化 CodeThrowExceptionStatement 类的新实例。

重载

名称 说明
CodeThrowExceptionStatement()

初始化 CodeThrowExceptionStatement 类的新实例。

CodeThrowExceptionStatement(CodeExpression)

使用指定的异常类型实例初始化类的新实例 CodeThrowExceptionStatement

CodeThrowExceptionStatement()

Source:
CodeThrowExceptionStatement.cs
Source:
CodeThrowExceptionStatement.cs
Source:
CodeThrowExceptionStatement.cs
Source:
CodeThrowExceptionStatement.cs
Source:
CodeThrowExceptionStatement.cs
Source:
CodeThrowExceptionStatement.cs
Source:
CodeThrowExceptionStatement.cs

初始化 CodeThrowExceptionStatement 类的新实例。

public:
 CodeThrowExceptionStatement();
public CodeThrowExceptionStatement();
Public Sub New ()

适用于

CodeThrowExceptionStatement(CodeExpression)

Source:
CodeThrowExceptionStatement.cs
Source:
CodeThrowExceptionStatement.cs
Source:
CodeThrowExceptionStatement.cs
Source:
CodeThrowExceptionStatement.cs
Source:
CodeThrowExceptionStatement.cs
Source:
CodeThrowExceptionStatement.cs
Source:
CodeThrowExceptionStatement.cs

使用指定的异常类型实例初始化类的新实例 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

另请参阅

适用于