TaskForm Class

Definition

Provides the base class for writing a Windows Form for IIS Manager.

public ref class TaskForm abstract : Microsoft::Web::Management::Client::Win32::BaseTaskForm
public abstract class TaskForm : Microsoft.Web.Management.Client.Win32.BaseTaskForm
type TaskForm = class
    inherit BaseTaskForm
Public MustInherit Class TaskForm
Inherits BaseTaskForm
Inheritance

Constructors

TaskForm(IServiceProvider)

Initializes a new instance of theTaskForm class.

Properties

BackgroundJobRunning

Gets a value indicating whether the background worker thread is busy.

(Inherited from BaseTaskForm)
BorderMargin

Gets the size, in pixels, of the border margin.

(Inherited from BaseTaskForm)
CanAccept

When overridden in a derived class, gets a value indicating whether the form can accept changes.

CanCancel

When overridden in a derived class, gets a value indicating whether the operation can be canceled.

CanShowHelp

Gets a value indicating whether the context-sensitive Help button is shown.

(Inherited from BaseForm)
IsCancellable

When overridden in a derived class, returns a value indicating whether tasks can be canceled.

ServiceProvider

Gets the service object for the class.

(Inherited from BaseForm)

Methods

CancelAsyncTask()

Provides a method for the user to cancel the current task.

(Inherited from BaseTaskForm)
DisplayErrorMessage(Exception, ResourceManager)

Displays a modal dialog box with an error message, based on the specified exception and resource manager.

(Inherited from BaseTaskForm)
Dispose(Boolean)

Releases the unmanaged resources used by the BaseForm and optionally releases the managed resources.

(Inherited from BaseForm)
GetService(Type)

Retrieves the requested service.

(Inherited from BaseForm)
InvalidateTask(Boolean)

Invalidates the progress bar and causes the control to be redrawn.

(Inherited from BaseTaskForm)
OnAccept()

Indicates that user input is accepted.

OnActivated(EventArgs)

Occurs when the base form is activated.

(Inherited from BaseForm)
OnCancel()

Cancels the pending changes.

OnHelpRequested(HelpEventArgs)

Occurs when a Help control is activated.

(Inherited from BaseForm)
OnInitialActivated(EventArgs)

Occurs when the base form is first activated.

(Inherited from BaseForm)
SetButtonsPanel(Control)

Adds a button to the button panel.

(Inherited from BaseTaskForm)
SetContent(Control)

Sets the controls for the Content View page in IIS Manager.

(Inherited from BaseTaskForm)
ShowError(Exception, String, Boolean)

Displays the specified exception and information about the exception in a message box.

(Inherited from BaseForm)
ShowHelp()

When overridden in a derived class, displays the Help file.

(Inherited from BaseForm)
ShowMessage(String)

Displays a message box that uses the specified text.

(Inherited from BaseForm)
ShowMessage(String, MessageBoxButtons, MessageBoxIcon, MessageBoxDefaultButton)

Displays a message box that uses the specified text, button set, symbol, and default button.

(Inherited from BaseForm)
StartAsyncTask(DoWorkEventHandler, RunWorkerCompletedEventHandler)

Starts a task by using a worker thread, and configures the work-completed event handler.

(Inherited from BaseTaskForm)
StartAsyncTask(DoWorkEventHandler, RunWorkerCompletedEventHandler, MethodInvoker)

Starts a task by using a worker thread, and configures the work-completed and cancel-task event handlers.

(Inherited from BaseTaskForm)
StartAsyncTask(DoWorkEventHandler, RunWorkerCompletedEventHandler, MethodInvoker, Object)

Starts a task by using a worker thread, configures the work-completed and cancel-task event handlers, and passes an object to the task event handler.

(Inherited from BaseTaskForm)
StartTaskProgress()

Sends a start notification to the TaskForm object.

StopTaskProgress()

Sends a start notification to the TaskForm.

Update()

Updates the status of the Cancel and OK buttons.

UpdateTaskForm()

Calls the Update() method.

WndProc(Message)

Reroutes the context-sensitive Help button events to the ShowHelp() method.

(Inherited from BaseForm)

Applies to