ExceptionRegionEncoder.Add 메서드

정의

예외 절을 추가합니다.

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

매개 변수

kind
ExceptionRegionKind

절 종류입니다.

tryOffset
Int32

블록 시작 오프셋을 시도합니다.

tryLength
Int32

블록 길이를 시도합니다.

handlerOffset
Int32

처리기 시작 오프셋입니다.

handlerLength
Int32

처리기 길이입니다.

filterOffset
Int32

필터 블록의 오프셋이거나, 그렇지 않으면 Filter0 kind 입니다.

반품

다음 절의 인코더입니다.

예외

catchType 가 잘못되었습니다.

kind 값이 잘못되었습니다.

-또는-

tryOffset, tryLength, handlerOffset또는 handlerLength 범위를 벗어났습니다.

메서드 본문에 예외 영역이 있다고 선언되지 않았습니다.

적용 대상