ExceptionHandler Costruttore

Definizione

Inizializza una nuova istanza della ExceptionHandler classe con i parametri specificati.

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)

Parametri

tryOffset
Int32

Offset di byte della prima istruzione protetta da questo gestore eccezioni.

tryLength
Int32

Numero di byte protetti da questo gestore eccezioni.

filterOffset
Int32

Offset di byte dell'inizio del codice di filtro. Il codice del filtro termina alla prima istruzione del blocco del gestore. Per i gestori eccezioni non di filtro, specificare 0 (zero) per questo parametro.

handlerOffset
Int32

Offset di byte della prima istruzione di questo gestore eccezioni.

handlerLength
Int32

Numero di byte in questo gestore eccezioni.

kind
ExceptionHandlingClauseOptions

Uno dei valori di enumerazione che specifica il tipo di gestore eccezioni.

exceptionTypeToken
Int32

Token del tipo di eccezione gestito da questo gestore eccezioni. Se non applicabile, specificare 0 (zero).

Eccezioni

tryOffset handlerOffset, filterOffset, tryLength, o handlerLength sono negativi.

Si applica a