Begins a catch block. Emits a branch instruction to the end of the current exception block.
[Visual Basic] Overridable Public Sub BeginCatchBlock( _ ByVal exceptionType As Type _ ) [C#] public virtual void BeginCatchBlock( Type exceptionType ); [C++] public: virtual void BeginCatchBlock( Type* exceptionType ); [JScript] public function BeginCatchBlock( exceptionType : Type );
Exception Type | Condition |
---|---|
ArgumentException | if exceptionType is not a subclass of the Exception class or if the catch block is within a filtered exception |
ArgumentNullException | if exceptionType is a null reference (in Visual Basic Nothing) |
NotSupportedException | the IL being generated is not currently in an exception block. |
ILGenerator Class | ILGenerator Members | System.Reflection.Emit Namespace