ExceptionRegionEncoder.Add Metoda

Definicja

Dodaje klauzulę wyjątku.

public System.Reflection.Metadata.Ecma335.ExceptionRegionEncoder Add (System.Reflection.Metadata.ExceptionRegionKind kind, int tryOffset, int tryLength, int handlerOffset, int handlerLength, System.Reflection.Metadata.EntityHandle catchType = default, int filterOffset = 0);
member this.Add : System.Reflection.Metadata.ExceptionRegionKind * int * int * int * int * System.Reflection.Metadata.EntityHandle * int -> System.Reflection.Metadata.Ecma335.ExceptionRegionEncoder
Public Function Add (kind As ExceptionRegionKind, tryOffset As Integer, tryLength As Integer, handlerOffset As Integer, handlerLength As Integer, Optional catchType As EntityHandle = Nothing, Optional filterOffset As Integer = 0) As ExceptionRegionEncoder

Parametry

kind
ExceptionRegionKind

Rodzaj klauzuli.

tryOffset
Int32

Spróbuj zablokować przesunięcie rozpoczęcia.

tryLength
Int32

Spróbuj użyć długości bloku.

handlerOffset
Int32

Przesunięcie uruchomienia programu obsługi.

handlerLength
Int32

Długość programu obsługi.

catchType
EntityHandle

TypeDefinitionHandle, TypeReferenceHandle lub TypeSpecificationHandle, lub zero, jeśli kind nie Catchjest .

filterOffset
Int32

Przesunięcie bloku filtru lub 0, jeśli wartość kind nie Filterjest równa .

Zwraca

Koder dla następnej klauzuli.

Wyjątki

Nazwa catchType jest niepoprawna.

kind ma nieprawidłową wartość.

-lub-

tryOffset, , tryLengthhandlerOffsetlub handlerLength jest poza zakresem.

Treść metody nie została zadeklarowana jako regiony wyjątków.

Dotyczy