C# Класс Microsoft.Silverlight.Testing.Harness.GlobalExceptionHandler

Provides a property that will attach and detach a known event handler delegate when the bit is flipped.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
ChangeExceptionBubbling ( EventArgs e, bool exceptionHandled ) : void

Mark the Handled property in the event args as True to stop any event bubbling.

GetExceptionObject ( EventArgs e ) : Exception

Return the Exception property from the EventArgs.

This method is compatible with the full desktop framework as well as Silverlight.

GlobalExceptionHandler ( EventHandler eventHandler ) : System.Windows

Creates a new exception handler "manager" with the provided EventHandler.

Приватные методы

Метод Описание
AttachHandler ( ) : void

Attach the handler globally.

DetachHandler ( ) : void

Detach the handler globally.

OnGlobalException ( object sender, System.Windows.ApplicationUnhandledExceptionEventArgs e ) : void

Internal event that is hooked up to the global exception handler.

_eventHandler ( sender e ) : System.Windows

Описание методов

ChangeExceptionBubbling() публичный статический Метод

Mark the Handled property in the event args as True to stop any event bubbling.
public static ChangeExceptionBubbling ( EventArgs e, bool exceptionHandled ) : void
e System.EventArgs Event arguments.
exceptionHandled bool /// Value indicating whether the Exception should be marked as handled. ///
Результат void

GetExceptionObject() публичный статический Метод

Return the Exception property from the EventArgs.
This method is compatible with the full desktop framework as well as Silverlight.
public static GetExceptionObject ( EventArgs e ) : Exception
e System.EventArgs Event arguments.
Результат System.Exception

GlobalExceptionHandler() публичный Метод

Creates a new exception handler "manager" with the provided EventHandler.
public GlobalExceptionHandler ( EventHandler eventHandler ) : System.Windows
eventHandler EventHandler The event handler to manage.
Результат System.Windows