共用方式為


ErrorListProvider.ForceShowErrors Method

Shows the errors in the Error List window.

Namespace:  Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell.11.0 (in Microsoft.VisualStudio.Shell.11.0.dll)

Syntax

'宣告
Public Sub ForceShowErrors
public void 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

See Also

Reference

ErrorListProvider Class

Microsoft.VisualStudio.Shell Namespace