Adds an observer to the list of observers for the controller.
Namespace: Microsoft.VisualStudio.Modeling.Validation
Assembly: Microsoft.VisualStudio.Modeling.Sdk (in Microsoft.VisualStudio.Modeling.Sdk.dll)
Syntax
'Declaration
Public Sub AddObserver ( _
observer As ValidationMessageObserver _
)
'Usage
Dim instance As ValidationController
Dim observer As ValidationMessageObserver
instance.AddObserver(observer)
public void AddObserver(
ValidationMessageObserver observer
)
public:
void AddObserver(
ValidationMessageObserver^ observer
)
public function AddObserver(
observer : ValidationMessageObserver
)
Parameters
observer
Type: Microsoft.VisualStudio.Modeling.Validation.ValidationMessageObserverA ValidationMessageObserver.
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
- 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.