ValidationMessageObserver.OnValidationMessagesChanging Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Override to process a change to the message collection.
protected:
virtual void OnValidationMessagesChanging(System::Collections::ObjectModel::ReadOnlyCollection<Microsoft::VisualStudio::Modeling::Validation::ValidationMessage ^> ^ messagesBeforeUpdate, System::Collections::ObjectModel::ReadOnlyCollection<Microsoft::VisualStudio::Modeling::Validation::ValidationMessage ^> ^ messagesRemoved, System::Collections::ObjectModel::ReadOnlyCollection<Microsoft::VisualStudio::Modeling::Validation::ValidationMessage ^> ^ messagesAdded, System::Collections::ObjectModel::ReadOnlyCollection<Microsoft::VisualStudio::Modeling::Validation::ValidationMessage ^> ^ messagesAfterUpdate);
protected virtual void OnValidationMessagesChanging (System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.VisualStudio.Modeling.Validation.ValidationMessage> messagesBeforeUpdate, System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.VisualStudio.Modeling.Validation.ValidationMessage> messagesRemoved, System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.VisualStudio.Modeling.Validation.ValidationMessage> messagesAdded, System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.VisualStudio.Modeling.Validation.ValidationMessage> messagesAfterUpdate);
abstract member OnValidationMessagesChanging : System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.VisualStudio.Modeling.Validation.ValidationMessage> * System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.VisualStudio.Modeling.Validation.ValidationMessage> * System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.VisualStudio.Modeling.Validation.ValidationMessage> * System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.VisualStudio.Modeling.Validation.ValidationMessage> -> unit
override this.OnValidationMessagesChanging : System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.VisualStudio.Modeling.Validation.ValidationMessage> * System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.VisualStudio.Modeling.Validation.ValidationMessage> * System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.VisualStudio.Modeling.Validation.ValidationMessage> * System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.VisualStudio.Modeling.Validation.ValidationMessage> -> unit
Protected Overridable Sub OnValidationMessagesChanging (messagesBeforeUpdate As ReadOnlyCollection(Of ValidationMessage), messagesRemoved As ReadOnlyCollection(Of ValidationMessage), messagesAdded As ReadOnlyCollection(Of ValidationMessage), messagesAfterUpdate As ReadOnlyCollection(Of ValidationMessage))
Parameters
- messagesBeforeUpdate
- ReadOnlyCollection<ValidationMessage>
- messagesRemoved
- ReadOnlyCollection<ValidationMessage>
- messagesAdded
- ReadOnlyCollection<ValidationMessage>
- messagesAfterUpdate
- ReadOnlyCollection<ValidationMessage>
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