ValidationController.AddObserver Method (ValidationMessageObserver)

 

Adds an observer to the list of observers for the controller. The observer will be notified when a message is added to or removed from the list for this controller.

Namespace:   Microsoft.VisualStudio.Modeling.Validation
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.12.0.dll)

public void AddObserver(
	ValidationMessageObserver observer
)

Parameters

observer
Type: Microsoft.VisualStudio.Modeling.Validation.ValidationMessageObserver

A ValidationMessageObserver.

The observer added to the list of observers will be notified when a message is added to or removed from the list of messages for the controller.

Return to top
Show: