Compartilhar via


ErrorListObserver Class

ErrorListObserver monitors changes after VsValidationController finishes the validation. It reports the error/warning/message in the VS ErrorList and Output window.

This API is not CLS-compliant. 

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.Modeling.Validation.ValidationMessageObserver
    Microsoft.VisualStudio.Modeling.Shell.ErrorListObserver

Namespace:  Microsoft.VisualStudio.Modeling.Shell
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Shell.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Shell.10.0.dll)

Syntax

'Declaração
<CLSCompliantAttribute(False)> _
Public Class ErrorListObserver _
    Inherits ValidationMessageObserver _
    Implements IDisposable
[CLSCompliantAttribute(false)]
public class ErrorListObserver : ValidationMessageObserver, 
    IDisposable
[CLSCompliantAttribute(false)]
public ref class ErrorListObserver : public ValidationMessageObserver, 
    IDisposable
[<CLSCompliantAttribute(false)>]
type ErrorListObserver =  
    class
        inherit ValidationMessageObserver
        interface IDisposable
    end
public class ErrorListObserver extends ValidationMessageObserver implements IDisposable

The ErrorListObserver type exposes the following members.

Constructors

  Name Description
Public method ErrorListObserver constructor

Top

Properties

  Name Description
Public property TaskProvider provides access to the Task List.

Top

Methods

  Name Description
Public method Dispose Releases all resources used by the current instance of the ErrorListObserver class.
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Use C# destructor syntax for finalization code. This destructor will run only if the Dispose method does not get called. It gives your base class the opportunity to finalize. Do not provide destructors in types derived from this class. (Overrides Object.Finalize().)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Protected method OnValidationBeginning Called when validation begins. (Overrides ValidationMessageObserver.OnValidationBeginning(ValidationContext).)
Protected method OnValidationEnded Called when validation ends. (Overrides ValidationMessageObserver.OnValidationEnded(ValidationContext).)
Protected method OnValidationMessageAdded Called when validation messages are added. (Overrides ValidationMessageObserver.OnValidationMessageAdded(ValidationMessage).)
Protected method OnValidationMessageRemoved Report removed messages to the task list. (Overrides ValidationMessageObserver.OnValidationMessageRemoved(ValidationMessage).)
Protected method OnValidationMessagesChangedSummary Indicates that the list of validation messages has changed. (Inherited from ValidationMessageObserver.)
Protected method OnValidationMessagesChanging Override to process a change to the message collection. (Overrides ValidationMessageObserver.OnValidationMessagesChanging(ReadOnlyCollection<ValidationMessage>, ReadOnlyCollection<ValidationMessage>, ReadOnlyCollection<ValidationMessage>, ReadOnlyCollection<ValidationMessage>).)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.VisualStudio.Modeling.Shell Namespace