ExceptionRegionEncoder.Add Método

Definição

Adiciona uma cláusula de exceção.

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

Parâmetros

kind
ExceptionRegionKind

Tipo de cláusula.

tryOffset
Int32

Experimenta o deslocamento de início do bloco.

tryLength
Int32

Experimente o comprimento do bloco.

handlerOffset
Int32

Início do handler offset.

handlerLength
Int32

Comprimento do handler.

filterOffset
Int32

Deslocamento do bloco do filtro, ou 0 se o kind não Filterfor .

Devoluções

Codificador para a próxima cláusula.

Exceções

catchType é inválido.

kind tem um valor inválido.

-ou-

tryOffset, tryLength, handlerOffset, ou handlerLength está fora do alcance.

O corpo do método não foi declarado como tendo regiões de exceção.

Aplica-se a