ValidationError Constructors

Definitie

Initialiseert een nieuw exemplaar van de ValidationError klasse.

Overloads

Name Description
ValidationError(ValidationRule, Object)

Initialiseert een nieuw exemplaar van de ValidationError klasse met de opgegeven parameters.

ValidationError(ValidationRule, Object, Object, Exception)

Initialiseert een nieuw exemplaar van de ValidationError klasse met de opgegeven parameters.

ValidationError(ValidationRule, Object)

Initialiseert een nieuw exemplaar van de ValidationError klasse met de opgegeven parameters.

public:
 ValidationError(System::Windows::Controls::ValidationRule ^ ruleInError, System::Object ^ bindingInError);
public ValidationError(System.Windows.Controls.ValidationRule ruleInError, object bindingInError);
new System.Windows.Controls.ValidationError : System.Windows.Controls.ValidationRule * obj -> System.Windows.Controls.ValidationError
Public Sub New (ruleInError As ValidationRule, bindingInError As Object)

Parameters

ruleInError
ValidationRule

De regel die een validatiefout heeft gedetecteerd.

bindingInError
Object

Het BindingExpression of MultiBindingExpression object met de validatiefout.

Van toepassing op

ValidationError(ValidationRule, Object, Object, Exception)

Initialiseert een nieuw exemplaar van de ValidationError klasse met de opgegeven parameters.

public:
 ValidationError(System::Windows::Controls::ValidationRule ^ ruleInError, System::Object ^ bindingInError, System::Object ^ errorContent, Exception ^ exception);
public ValidationError(System.Windows.Controls.ValidationRule ruleInError, object bindingInError, object errorContent, Exception exception);
new System.Windows.Controls.ValidationError : System.Windows.Controls.ValidationRule * obj * obj * Exception -> System.Windows.Controls.ValidationError
Public Sub New (ruleInError As ValidationRule, bindingInError As Object, errorContent As Object, exception As Exception)

Parameters

ruleInError
ValidationRule

De regel die een validatiefout heeft gedetecteerd.

bindingInError
Object

Het BindingExpression of MultiBindingExpression object met de validatiefout.

errorContent
Object

Informatie over de fout.

exception
Exception

De uitzondering die de validatiefout heeft veroorzaakt. Deze parameter is optioneel en kan worden ingesteld op null.

Van toepassing op