ErrorListProvider.ForceShowErrors Method
Shows the errors in the Error List window.
Namespace: Microsoft.VisualStudio.Shell
Assemblies: Microsoft.VisualStudio.Shell (in Microsoft.VisualStudio.Shell.dll)
Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)
Microsoft.VisualStudio.Shell.9.0 (in Microsoft.VisualStudio.Shell.9.0.dll)
Syntax
‘선언
Public Sub ForceShowErrors
‘사용 방법
Dim instance As ErrorListProvider
instance.ForceShowErrors()
public void ForceShowErrors()
public:
void ForceShowErrors()
member ForceShowErrors : unit -> unit
public function ForceShowErrors()
Remarks
Forces the error toggle "on", so that errors are visible in the Error List window. Warnings and informational messages are not affected.
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();
}
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.