ErrorListObserver.OnValidationMessagesChanging Method

Override to process a change to the message collection.

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

Syntax

声明
Protected Overrides Sub OnValidationMessagesChanging ( _
    messagesBeforeUpdate As ReadOnlyCollection(Of ValidationMessage), _
    messagesRemoved As ReadOnlyCollection(Of ValidationMessage), _
    messagesAdded As ReadOnlyCollection(Of ValidationMessage), _
    messagesAfterUpdate As ReadOnlyCollection(Of ValidationMessage) _
)
protected override void OnValidationMessagesChanging(
    ReadOnlyCollection<ValidationMessage> messagesBeforeUpdate,
    ReadOnlyCollection<ValidationMessage> messagesRemoved,
    ReadOnlyCollection<ValidationMessage> messagesAdded,
    ReadOnlyCollection<ValidationMessage> messagesAfterUpdate
)
protected:
virtual void OnValidationMessagesChanging(
    ReadOnlyCollection<ValidationMessage^>^ messagesBeforeUpdate, 
    ReadOnlyCollection<ValidationMessage^>^ messagesRemoved, 
    ReadOnlyCollection<ValidationMessage^>^ messagesAdded, 
    ReadOnlyCollection<ValidationMessage^>^ messagesAfterUpdate
) override
abstract OnValidationMessagesChanging : 
        messagesBeforeUpdate:ReadOnlyCollection<ValidationMessage> * 
        messagesRemoved:ReadOnlyCollection<ValidationMessage> * 
        messagesAdded:ReadOnlyCollection<ValidationMessage> * 
        messagesAfterUpdate:ReadOnlyCollection<ValidationMessage> -> unit 
override OnValidationMessagesChanging : 
        messagesBeforeUpdate:ReadOnlyCollection<ValidationMessage> * 
        messagesRemoved:ReadOnlyCollection<ValidationMessage> * 
        messagesAdded:ReadOnlyCollection<ValidationMessage> * 
        messagesAfterUpdate:ReadOnlyCollection<ValidationMessage> -> unit 
protected override function OnValidationMessagesChanging(
    messagesBeforeUpdate : ReadOnlyCollection<ValidationMessage>, 
    messagesRemoved : ReadOnlyCollection<ValidationMessage>, 
    messagesAdded : ReadOnlyCollection<ValidationMessage>, 
    messagesAfterUpdate : ReadOnlyCollection<ValidationMessage>
)

Parameters

Remarks

methods are called in this order: 1. OnValidationMessagesChanging 2. OnValidationMessageRemoved - called once for each message removed. 3. OnValidationMessageAdded - called once for each message added. 4. OnValidationMessagesChangedSummary

.NET Framework Security

See Also

Reference

ErrorListObserver Class

Microsoft.VisualStudio.Modeling.Shell Namespace