This documentation is archived and is not being maintained.
Validation::MarkInvalid Method
Visual Studio 2010
Marks the specified BindingExpression object as invalid with the specified ValidationError object.
Assembly: PresentationFramework (in PresentationFramework.dll)
public: static void MarkInvalid( BindingExpressionBase^ bindingExpression, ValidationError^ validationError )
Parameters
- bindingExpression
- Type: System.Windows.Data::BindingExpressionBase
The BindingExpression object to mark as invalid.
- validationError
- Type: System.Windows.Controls::ValidationError
The ValidationError object to use.
| Exception | Condition |
|---|---|
| ArgumentNullException | If bindingExpression is nullptr. |
| ArgumentNullException | If validationError is nullptr. |
The BindingExpression object stays invalid until ClearInvalid is called or another transfer to the binding source validates successfully.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: