ExceptionRegionEncoder.Add Metodo

Definizione

Aggiunge una clausola di eccezione.

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

Parametri

kind
ExceptionRegionKind

Tipo di clausola.

tryOffset
Int32

Provare l'offset di avvio del blocco.

tryLength
Int32

Provare la lunghezza del blocco.

handlerOffset
Int32

Offset iniziale del gestore.

handlerLength
Int32

Lunghezza del gestore.

filterOffset
Int32

Offset del blocco di filtro oppure 0 se non kindFilterè .

Valori restituiti

Codificatore per la clausola successiva.

Eccezioni

catchType non è valido.

kind ha un valore non valido.

oppure

tryOffset handlerOffset, tryLength, o handlerLength non è compreso nell'intervallo.

Il corpo del metodo non è stato dichiarato per avere aree di eccezione.

Si applica a