ErrorListObserver.OnValidationMessageAdded Method
Called when validation messages are added.
Namespace: Microsoft.VisualStudio.Modeling.Shell
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Shell.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Shell.10.0.dll)
Syntax
'Déclaration
Protected Overrides Sub OnValidationMessageAdded ( _
addedMessage As ValidationMessage _
)
protected override void OnValidationMessageAdded(
ValidationMessage addedMessage
)
protected:
virtual void OnValidationMessageAdded(
ValidationMessage^ addedMessage
) override
abstract OnValidationMessageAdded :
addedMessage:ValidationMessage -> unit
override OnValidationMessageAdded :
addedMessage:ValidationMessage -> unit
protected override function OnValidationMessageAdded(
addedMessage : ValidationMessage
)
Parameters
- addedMessage
Type: Microsoft.VisualStudio.Modeling.Validation.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
.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.