ValidationMessageObserver.OnValidationMessagesChanging Method
Indicates that a list of validation messages is changing.
Namespace: Microsoft.VisualStudio.Modeling.Validation
Assembly: Microsoft.VisualStudio.Modeling.Sdk.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.10.0.dll)
Syntax
'Declaração
Protected Overridable Sub OnValidationMessagesChanging ( _
messagesBeforeUpdate As ReadOnlyCollection(Of ValidationMessage), _
messagesRemoved As ReadOnlyCollection(Of ValidationMessage), _
messagesAdded As ReadOnlyCollection(Of ValidationMessage), _
messagesAfterUpdate As ReadOnlyCollection(Of ValidationMessage) _
)
protected virtual 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
)
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 function OnValidationMessagesChanging(
messagesBeforeUpdate : ReadOnlyCollection<ValidationMessage>,
messagesRemoved : ReadOnlyCollection<ValidationMessage>,
messagesAdded : ReadOnlyCollection<ValidationMessage>,
messagesAfterUpdate : ReadOnlyCollection<ValidationMessage>
)
Parameters
- messagesBeforeUpdate
Type: System.Collections.ObjectModel.ReadOnlyCollection<ValidationMessage>
The ValidationMessage objects before the update occurred.
- messagesRemoved
Type: System.Collections.ObjectModel.ReadOnlyCollection<ValidationMessage>
The ValidationMessage objects that were removed.
- messagesAdded
Type: System.Collections.ObjectModel.ReadOnlyCollection<ValidationMessage>
The ValidationMessage objects that were added.
- messagesAfterUpdate
Type: System.Collections.ObjectModel.ReadOnlyCollection<ValidationMessage>
The ValidationMessage objects after the update occurred.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.