ValidationMessageObserver.OnValidationMessagesChangedSummary 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重写以处理对消息集合的更改的摘要。
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))
参数
- messagesBeforeUpdate
- ReadOnlyCollection<ValidationMessage>
- messagesAfterUpdate
- ReadOnlyCollection<ValidationMessage>
注解
按以下顺序调用方法:1。 OnValidationMessagesChanging 2。 OnValidationMessageRemoved-为删除的每个消息调用一次。 3. OnValidationMessageAdded-为添加的每个消息调用一次。 4. OnValidationMessagesChangedSummary