CodeThrowExceptionStatement 构造函数

定义

初始化 CodeThrowExceptionStatement 类的新实例。

重载

CodeThrowExceptionStatement()

初始化 CodeThrowExceptionStatement 类的新实例。

CodeThrowExceptionStatement(CodeExpression)

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

CodeThrowExceptionStatement()

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

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

CodeExpression,指示要引发的异常。

另请参阅

适用于