C# Класс Microsoft.VsSDK.IntegrationTestLibrary.DialogBoxPurger

This class is responsible to close dialog boxes that pop up during different VS Calls
Наследование: IDisposable
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
DialogBoxPurger ( int buttonAction ) : System

Overloaded ctor.

DialogBoxPurger ( int buttonAction, int numberOfDialogsToWaitFor ) : System

Overloaded ctor.

DialogBoxPurger ( int buttonAction, int numberOfDialogsToWaitFor, string expectedDialogMesssage ) : System

Overloaded ctor.

DialogBoxPurger ( int buttonAction, string expectedDialogMesssage ) : System

Overloaded ctor.

FindMessageBoxString ( IntPtr hwnd, IntPtr unmanagedMemoryLocation ) : bool

Finds a messagebox string on a messagebox.

HandleDialogBoxes ( ) : void

This is the thread method.

IDisposable ( ) : void
Start ( ) : void

Spawns a thread that will start listening to dialog boxes.

WaitForDialogThreadToTerminate ( ) : bool

Waits for the dialog box close thread to terminate. If the thread does not signal back within millisecondsToWait that it is shutting down, then it will tell to the thread to do it.

WaitForDialogThreadToTerminate ( int numberOfMillisecondsToWait ) : bool

Waits for the dialog box close thread to terminate. If the thread does not signal back within millisecondsToWait that it is shutting down, then it will tell to the thread to do it.