共用方式為


ValidationMessageObserver.OnValidationMessagesChangedSummary Method

Definition

Override to process a summary of the the change to the message collection.

protected:
 virtual void OnValidationMessagesChangedSummary(System::Collections::ObjectModel::ReadOnlyCollection<Microsoft::VisualStudio::Modeling::Validation::ValidationMessage ^> ^ messagesBeforeUpdate, System::Collections::ObjectModel::ReadOnlyCollection<Microsoft::VisualStudio::Modeling::Validation::ValidationMessage ^> ^ messagesAfterUpdate);
protected virtual void OnValidationMessagesChangedSummary (System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.VisualStudio.Modeling.Validation.ValidationMessage> messagesBeforeUpdate, System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.VisualStudio.Modeling.Validation.ValidationMessage> messagesAfterUpdate);
abstract member OnValidationMessagesChangedSummary : System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.VisualStudio.Modeling.Validation.ValidationMessage> * System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.VisualStudio.Modeling.Validation.ValidationMessage> -> unit
override this.OnValidationMessagesChangedSummary : System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.VisualStudio.Modeling.Validation.ValidationMessage> * System.Collections.ObjectModel.ReadOnlyCollection<Microsoft.VisualStudio.Modeling.Validation.ValidationMessage> -> unit
Protected Overridable Sub OnValidationMessagesChangedSummary (messagesBeforeUpdate As ReadOnlyCollection(Of ValidationMessage), messagesAfterUpdate As ReadOnlyCollection(Of ValidationMessage))

Parameters

messagesBeforeUpdate
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

Applies to