C# 클래스 Microsoft.Silverlight.Testing.Harness.GlobalExceptionHandler

Provides a property that will attach and detach a known event handler delegate when the bit is flipped.
파일 보기 프로젝트 열기: garyjohnson/wpnest 1 사용 예제들

공개 메소드들

메소드 설명
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