例外のローカル変数名、例外の種類、およびステートメント コレクションを指定して、CodeCatchClause クラスの新しいインスタンスを初期化します。
名前空間: System.CodeDom
アセンブリ: System (system.dll 内)
構文
'宣言
Public Sub New ( _
localName As String, _
catchExceptionType As CodeTypeReference, _
ParamArray statements As CodeStatement() _
)
'使用
Dim localName As String
Dim catchExceptionType As CodeTypeReference
Dim statements As CodeStatement()
Dim instance As New CodeCatchClause(localName, catchExceptionType, statements)
public CodeCatchClause (
string localName,
CodeTypeReference catchExceptionType,
params CodeStatement[] statements
)
public:
CodeCatchClause (
String^ localName,
CodeTypeReference^ catchExceptionType,
... array<CodeStatement^>^ statements
)
public CodeCatchClause (
String localName,
CodeTypeReference catchExceptionType,
CodeStatement[] statements
)
public function CodeCatchClause (
localName : String,
catchExceptionType : CodeTypeReference,
... statements : CodeStatement[]
)
パラメータ
- localName
例外の catch 句で宣言されたローカル変数の名前。これはオプションです。
- catchExceptionType
キャッチする例外の種類を示す CodeTypeReference。
- statements
catch ブロックの内容を表す CodeStatement オブジェクトの配列。
プラットフォーム
Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
バージョン情報
.NET Framework
サポート対象 : 2.0、1.1、1.0