CodeTryCatchFinallyStatement 构造函数

定义

初始化 CodeTryCatchFinallyStatement 类的新实例。

重载

CodeTryCatchFinallyStatement()

初始化 CodeTryCatchFinallyStatement 类的新实例。

CodeTryCatchFinallyStatement(CodeStatement[], CodeCatchClause[])

使用指定的 try 子句和 catch 子句的语句初始化 CodeTryCatchFinallyStatement 类的新实例。

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

使用指定的 try 子句和 catch 子句的语句以及 finally 语句初始化 CodeTryCatchFinallyStatement 类的新实例。

CodeTryCatchFinallyStatement()

Source:
CodeTryCatchFinallyStatement.cs
Source:
CodeTryCatchFinallyStatement.cs
Source:
CodeTryCatchFinallyStatement.cs

初始化 CodeTryCatchFinallyStatement 类的新实例。

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

适用于

CodeTryCatchFinallyStatement(CodeStatement[], CodeCatchClause[])

Source:
CodeTryCatchFinallyStatement.cs
Source:
CodeTryCatchFinallyStatement.cs
Source:
CodeTryCatchFinallyStatement.cs

使用指定的 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 对象的数组,指示要尝试 (Try) 的语句。

catchClauses
CodeCatchClause[]

CodeCatchClause 对象的数组,指示要捕捉 (Catch) 的子句。

适用于

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

Source:
CodeTryCatchFinallyStatement.cs
Source:
CodeTryCatchFinallyStatement.cs
Source:
CodeTryCatchFinallyStatement.cs

使用指定的 try 子句和 catch 子句的语句以及 finally 语句初始化 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 对象的数组,指示要尝试 (Try) 的语句。

catchClauses
CodeCatchClause[]

CodeCatchClause 对象的数组,指示要捕捉 (Catch) 的子句。

finallyStatements
CodeStatement[]

CodeStatement 对象的数组,指示要使用的 finally 语句。

适用于