ExceptionHandler 建構函式

定義

使用指定的參數,初始化 ExceptionHandler 類別的新執行個體。

public:
 ExceptionHandler(int tryOffset, int tryLength, int filterOffset, int handlerOffset, int handlerLength, System::Reflection::ExceptionHandlingClauseOptions kind, int exceptionTypeToken);
public ExceptionHandler (int tryOffset, int tryLength, int filterOffset, int handlerOffset, int handlerLength, System.Reflection.ExceptionHandlingClauseOptions kind, int exceptionTypeToken);
new System.Reflection.Emit.ExceptionHandler : int * int * int * int * int * System.Reflection.ExceptionHandlingClauseOptions * int -> System.Reflection.Emit.ExceptionHandler
Public Sub New (tryOffset As Integer, tryLength As Integer, filterOffset As Integer, handlerOffset As Integer, handlerLength As Integer, kind As ExceptionHandlingClauseOptions, exceptionTypeToken As Integer)

參數

tryOffset
Int32

受此例外狀況處理常式保護的第一個指令的位元組位移。

tryLength
Int32

這個例外狀況處理常式所保護的位元組數目。

filterOffset
Int32

篩選代碼開頭的位元組位移。 篩選程式碼結束於處理常式區塊的第一個指令。 對於非篩選例外狀況處理常式,將這個參數指定為 0 (零)。

handlerOffset
Int32

此例外狀況處理常式的第一個指令的位元組位移。

handlerLength
Int32

這個例外狀況處理常式中的位元組數目。

kind
ExceptionHandlingClauseOptions

其中一個列舉值,這個值指定例外狀況處理常式的類型。

exceptionTypeToken
Int32

這個例外狀況處理常式所處理之例外狀況型別的權杖。 如果不適用,則指定 0 (零)。

例外狀況

tryOffset, 、filterOffsethandlerOffsettryLengthhandlerLength 為負數。

適用於