CodeTryCatchFinallyStatement 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化 CodeTryCatchFinallyStatement 类的新实例。
重载
| 名称 | 说明 |
|---|---|
| CodeTryCatchFinallyStatement() |
初始化 CodeTryCatchFinallyStatement 类的新实例。 |
| CodeTryCatchFinallyStatement(CodeStatement[], CodeCatchClause[]) |
使用 try 和 catch 子句的指定语句初始化类的新实例 CodeTryCatchFinallyStatement 。 |
| CodeTryCatchFinallyStatement(CodeStatement[], CodeCatchClause[], CodeStatement[]) |
使用 try、catch 子句和 finally 语句的指定语句初始化类的新实例 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 子句和 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 。
- catchClauses
- CodeCatchClause[]
指示要捕获的子句的对象数组 CodeCatchClause 。
- finallyStatements
- CodeStatement[]
一个 CodeStatement 对象数组,指示要使用的最后语句。