次の方法で共有


ValidationState.AddError Method

Definition

Overloads

AddError(Exception, String)

Adds a new error to the errors list, the error message is set to the exception message.

AddError(String, String)

Adds a new error to the errors list

AddError(String, Exception, String)

Adds a new error to the errors list

AddError(Exception, String)

Adds a new error to the errors list, the error message is set to the exception message.

public void AddError (Exception error, string bindingKey);
member this.AddError : Exception * string -> unit
Public Sub AddError (error As Exception, bindingKey As String)

Parameters

error
Exception

The source exception for the error

bindingKey
String

The property name which caused the error

Applies to

AddError(String, String)

Adds a new error to the errors list

public void AddError (string message, string bindingKey);
member this.AddError : string * string -> unit
Public Sub AddError (message As String, bindingKey As String)

Parameters

message
String

The error message

bindingKey
String

The property name which caused the error

Applies to

AddError(String, Exception, String)

Adds a new error to the errors list

public void AddError (string message, Exception error, string bindingKey);
member this.AddError : string * Exception * string -> unit
Public Sub AddError (message As String, error As Exception, bindingKey As String)

Parameters

message
String

The error message

error
Exception

The source exception for the error

bindingKey
String

The property name which caused the error

Applies to