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

Try 블록 시작 오프셋.

tryLength
Int32

Try 블록 길이.

handlerOffset
Int32

처리기 시작 오프셋.

handlerLength
Int32

처리기 길이.

catchType
EntityHandle

TypeDefinitionHandle, TypeReferenceHandle 또는 TypeSpecificationHandle, 또는 가 이 아닌 Catch경우 kind nil입니다.

filterOffset
Int32

필터 블록의 오프셋이거나, kindFilter가 아닌 경우 0입니다.

반환

다음 절의 인코더.

예외

catchType이 잘못되었습니다.

kind의 값이 잘못된 경우

또는

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

메서드 본문이 예외 영역을 포함하도록 선언되지 않았습니다.

적용 대상