Freigeben über


ValidationState Class

Definition

Provides overall state information.

public class ValidationState
type ValidationState = class
Public Class ValidationState
Inheritance
ValidationState

Constructors

ValidationState()

Constructs an object of type ValidationState

ValidationState(Exception, String, Boolean)

Constructs an object of type ValidationState, the error message is set to the exception message

ValidationState(Exception, String)

Constructs an object of type ValidationState, the error message is set to the exception message, the fault type is set to error by default.

ValidationState(String, Exception, String, Boolean)

Constructs an object of type ValidationState

ValidationState(String, Exception, String)

Constructs an object of type ValidationState, the fault type is set to error by default.

ValidationState(String, String, Boolean)

Constructs an object of type ValidationState

ValidationState(String, String)

Constructs an object of type ValidationState, the fault type is set to error by default.

Properties

HasErrors

True if this validation state contains one error or more, otherwise false

HasWarnings

True if this validation state contains one warning or more, otherwise false

Results

Get the list of the results associated with this validation state

Methods

AddError(Exception, String)

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

AddError(String, Exception, String)

Adds a new error to the errors list

AddError(String, String)

Adds a new error to the errors list

AddWarning(Exception, String)

Adds a new warning to the warnings list, the warning message is set to the exception message.

AddWarning(String, Exception, String)

Adds a new warning to the warnings list

AddWarning(String, String)

Adds a new warning to the warnings list

Applies to