Share via


ValidationController.AddObserver Method

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.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.11.0.dll)

Syntax

'Declaration
Public Sub AddObserver ( _
    observer As ValidationMessageObserver _
)
public void AddObserver(
    ValidationMessageObserver observer
)
public:
void AddObserver(
    ValidationMessageObserver^ observer
)
member AddObserver : 
        observer:ValidationMessageObserver -> unit
public function AddObserver(
    observer : ValidationMessageObserver
)

Parameters

Remarks

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.

.NET Framework Security

See Also

Reference

ValidationController Class

Microsoft.VisualStudio.Modeling.Validation Namespace