Partager via


ValidationController.ClearMessages Method

Removes all error and warning messages from the controller.

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

Syntax

'Declaration
Public Overridable Sub ClearMessages
public virtual void ClearMessages()
public:
virtual void ClearMessages()
abstract ClearMessages : unit -> unit  
override ClearMessages : unit -> unit
public function ClearMessages()

Remarks

After this method is called, the collection of messages for the controller should be empty.

.NET Framework Security

See Also

Reference

ValidationController Class

Microsoft.VisualStudio.Modeling.Validation Namespace