ErrorListProvider.ForceShowErrors Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Shows the errors in the Error List window.
public:
void ForceShowErrors();
public:
void ForceShowErrors();
void ForceShowErrors();
public void ForceShowErrors ();
member this.ForceShowErrors : unit -> unit
Public Sub ForceShowErrors ()
Examples
[C#]
using System;
using System.Collections;
using System.Diagnostics;
using System.Windows.Forms;
using Microsoft.VisualStudio.Shell;
//Where this refers to an ErrorListProvider object.
/// <summary>
/// Ensure Errors List is visible and listing validation errors.
/// </summary>
public void ShowErrors()
{
this.BringToFront();
this.ForceShowErrors();
}
Remarks
Forces the error toggle "on", so that errors are visible in the Error List window. Warnings and informational messages are not affected.