ExceptionHandler Konstruktor

Definicja

Inicjuje ExceptionHandler nowe wystąpienie klasy z określonymi parametrami.

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)

Parametry

tryOffset
Int32

Przesunięcie bajtów pierwszej instrukcji chronionej przez tę procedurę obsługi wyjątków.

tryLength
Int32

Liczba bajtów chronionych przez tę procedurę obsługi wyjątków.

filterOffset
Int32

Przesunięcie bajtów początku kodu filtru. Kod filtru kończy się na pierwszej instrukcji bloku procedury obsługi. W przypadku procedur obsługi wyjątków niefiltrujących określ wartość 0 (zero) dla tego parametru.

handlerOffset
Int32

Przesunięcie bajtów pierwszej instrukcji tego programu obsługi wyjątków.

handlerLength
Int32

Liczba bajtów w tej procedurze obsługi wyjątków.

kind
ExceptionHandlingClauseOptions

Jedna z wartości wyliczenia, która określa rodzaj procedury obsługi wyjątków.

exceptionTypeToken
Int32

Token typu wyjątku obsługiwanego przez tę procedurę obsługi wyjątków. Jeśli nie ma zastosowania, określ wartość 0 (zero).

Wyjątki

tryOffset, filterOffset, , tryLengthhandlerOffsetlub handlerLength są ujemne.

Dotyczy