CodeThrowExceptionStatement 建構函式

定義

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

多載

CodeThrowExceptionStatement()

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

CodeThrowExceptionStatement(CodeExpression)

使用指定的例外狀況型別執行個體,初始化 CodeThrowExceptionStatement 類別的新執行個體。

CodeThrowExceptionStatement()

來源:
CodeThrowExceptionStatement.cs
來源:
CodeThrowExceptionStatement.cs
來源:
CodeThrowExceptionStatement.cs

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

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

適用於

CodeThrowExceptionStatement(CodeExpression)

來源:
CodeThrowExceptionStatement.cs
來源:
CodeThrowExceptionStatement.cs
來源:
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,表示要擲回的例外狀況。

另請參閱

適用於