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
声明
<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 | |
---|---|---|
ErrorListObserver | constructor |
Top
Properties
Name | Description | |
---|---|---|
TaskProvider | provides access to the Task List. |
Top
Methods
Name | Description | |
---|---|---|
Dispose | Releases all resources used by the current instance of the ErrorListObserver class. | |
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
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().) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
OnValidationBeginning | Called when validation begins. (Overrides ValidationMessageObserver.OnValidationBeginning(ValidationContext).) | |
OnValidationEnded | Called when validation ends. (Overrides ValidationMessageObserver.OnValidationEnded(ValidationContext).) | |
OnValidationMessageAdded | Called when validation messages are added. (Overrides ValidationMessageObserver.OnValidationMessageAdded(ValidationMessage).) | |
OnValidationMessageRemoved | Report removed messages to the task list. (Overrides ValidationMessageObserver.OnValidationMessageRemoved(ValidationMessage).) | |
OnValidationMessagesChangedSummary | Indicates that the list of validation messages has changed. (Inherited from ValidationMessageObserver.) | |
OnValidationMessagesChanging | Override to process a change to the message collection. (Overrides ValidationMessageObserver.OnValidationMessagesChanging(ReadOnlyCollection<ValidationMessage>, ReadOnlyCollection<ValidationMessage>, ReadOnlyCollection<ValidationMessage>, ReadOnlyCollection<ValidationMessage>).) | |
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.