CodeTryCatchFinallyStatement 建構函式

定義

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

多載

名稱 Description
CodeTryCatchFinallyStatement()

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

CodeTryCatchFinallyStatement(CodeStatement[], CodeCatchClause[])

使用指定的 try 和 catch 子句語句初始化該 CodeTryCatchFinallyStatement 類別的新實例。

CodeTryCatchFinallyStatement(CodeStatement[], CodeCatchClause[], CodeStatement[])

使用指定的 try、catch 子句和 final 陳述句,初始化類別的新 CodeTryCatchFinallyStatement 實例。

CodeTryCatchFinallyStatement()

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

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

適用於

CodeTryCatchFinallyStatement(CodeStatement[], CodeCatchClause[])

使用指定的 try 和 catch 子句語句初始化該 CodeTryCatchFinallyStatement 類別的新實例。

public:
 CodeTryCatchFinallyStatement(cli::array <System::CodeDom::CodeStatement ^> ^ tryStatements, cli::array <System::CodeDom::CodeCatchClause ^> ^ catchClauses);
public CodeTryCatchFinallyStatement(System.CodeDom.CodeStatement[] tryStatements, System.CodeDom.CodeCatchClause[] catchClauses);
new System.CodeDom.CodeTryCatchFinallyStatement : System.CodeDom.CodeStatement[] * System.CodeDom.CodeCatchClause[] -> System.CodeDom.CodeTryCatchFinallyStatement
Public Sub New (tryStatements As CodeStatement(), catchClauses As CodeCatchClause())

參數

tryStatements
CodeStatement[]

一組 CodeStatement 物件陣列,指示要嘗試的語句。

catchClauses
CodeCatchClause[]

一組 CodeCatchClause 物件,指示要捕捉的子句。

適用於

CodeTryCatchFinallyStatement(CodeStatement[], CodeCatchClause[], CodeStatement[])

使用指定的 try、catch 子句和 final 陳述句,初始化類別的新 CodeTryCatchFinallyStatement 實例。

public:
 CodeTryCatchFinallyStatement(cli::array <System::CodeDom::CodeStatement ^> ^ tryStatements, cli::array <System::CodeDom::CodeCatchClause ^> ^ catchClauses, cli::array <System::CodeDom::CodeStatement ^> ^ finallyStatements);
public CodeTryCatchFinallyStatement(System.CodeDom.CodeStatement[] tryStatements, System.CodeDom.CodeCatchClause[] catchClauses, System.CodeDom.CodeStatement[] finallyStatements);
new System.CodeDom.CodeTryCatchFinallyStatement : System.CodeDom.CodeStatement[] * System.CodeDom.CodeCatchClause[] * System.CodeDom.CodeStatement[] -> System.CodeDom.CodeTryCatchFinallyStatement
Public Sub New (tryStatements As CodeStatement(), catchClauses As CodeCatchClause(), finallyStatements As CodeStatement())

參數

tryStatements
CodeStatement[]

一組 CodeStatement 物件陣列,指示要嘗試的語句。

catchClauses
CodeCatchClause[]

一組 CodeCatchClause 物件,指示要捕捉的子句。

finallyStatements
CodeStatement[]

一個物件陣列 CodeStatement ,指示最終要使用的語句。

適用於