Share via


BaseTaskForm.DisplayErrorMessage(Exception, ResourceManager) Method

Definition

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

protected:
 override void DisplayErrorMessage(Exception ^ ex, System::Resources::ResourceManager ^ resourceManager);
protected override void DisplayErrorMessage (Exception ex, System.Resources.ResourceManager resourceManager);
override this.DisplayErrorMessage : Exception * System.Resources.ResourceManager -> unit

Parameters

ex
Exception

The Exception to display.

resourceManager
ResourceManager

The ResourceManager object associated with the page.

Examples

The following example duplicates the DisplayErrorMessage method.

protected override int BorderMargin {
    get {
        return 14;
    }
}

Remarks

The DisplayErrorMessage method calls the StopTaskProgress method.

Applies to