ExceptionHandler コンストラクター

定義

指定したパラメーターを使用して、ExceptionHandler クラスの新しいインスタンスを初期化します。

public:
 ExceptionHandler(int tryOffset, int tryLength, int filterOffset, int handlerOffset, int handlerLength, System::Reflection::ExceptionHandlingClauseOptions kind, int exceptionTypeToken);
public ExceptionHandler (int tryOffset, int tryLength, int filterOffset, int handlerOffset, int handlerLength, System.Reflection.ExceptionHandlingClauseOptions kind, int exceptionTypeToken);
new System.Reflection.Emit.ExceptionHandler : int * int * int * int * int * System.Reflection.ExceptionHandlingClauseOptions * int -> System.Reflection.Emit.ExceptionHandler
Public Sub New (tryOffset As Integer, tryLength As Integer, filterOffset As Integer, handlerOffset As Integer, handlerLength As Integer, kind As ExceptionHandlingClauseOptions, exceptionTypeToken As Integer)

パラメーター

tryOffset
Int32

この例外ハンドラーにより保護される最初の命令のバイト オフセット。

tryLength
Int32

この例外ハンドラーによって保護されるバイト数。

filterOffset
Int32

フィルター コードの先頭のバイト オフセット。 フィルター コードは、ハンドラー ブロックの最初の命令で終了します。 非フィルター例外ハンドラーの場合は、このパラメーターに 0 (ゼロ) を指定します。

handlerOffset
Int32

この例外ハンドラーの最初の命令のバイト オフセット。

handlerLength
Int32

この例外ハンドラーのバイト数。

kind
ExceptionHandlingClauseOptions

例外ハンドラーの種類を指定する列挙値の 1 つ。

exceptionTypeToken
Int32

この例外ハンドラーによって処理される例外の種類のトークン。 該当しない場合は、0 (ゼロ) を指定します。

例外

tryOffsetfilterOffsethandlerOffsettryLength、または handlerLength が負の値です。

適用対象