CodeThrowExceptionStatement 建構函式

定義

初始化 CodeThrowExceptionStatement 類別的新執行個體。

多載

名稱 Description
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 表示可以投擲的例外。

另請參閱

適用於