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.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.10.0.dll)
Syntax
'宣告
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
- observer
Type: Microsoft.VisualStudio.Modeling.Validation.ValidationMessageObserver
A 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.