Inheritance: CorThreadEventArgs
示例#1
0
 private void OnException(object sender, CorExceptionEventArgs e)
 {
     Console.Out.WriteLine("Exception {0}...", e);
 }
示例#2
0
        private void ExceptionEventHandler(Object sender, CorExceptionEventArgs e)
        {
            Trace.WriteLine("ManagedCallback::Exception");
            BeginManagedDebugEvent();
            try
            {
                if (InternalHandleRawMode(ManagedCallbackType.OnException, e))
                    return;

                // This callback is deprecated by more recent Exception2 callback that
                // contains all new functionality.

                // See more info in Exception2 callback

                if (HandleCustomPostCallback(ManagedCallbackType.OnException, e))
                    return;
            }
            finally
            {
                EndManagedDebugEvent(e);
            }
        }