Επεξεργασία

Κοινή χρήση μέσω


ValidationError Constructors

Definition

Creates a new instance of a ValidationError class.

Overloads

ValidationError(String)

Creates a new instance of the ValidationError class using the specified error message.

ValidationError(String, Boolean)

Creates a new instance of the ValidationError class using the specified error message and warning indication.

ValidationError(String, Boolean, String)

Creates a new instance of the ValidationError class using the specified error message, warning indicator, and name of the property that caused the error.

ValidationError(String, Boolean, String, Object)

Creates a new instance of the ValidationError class using the specified error message, warning indicator, name of the property and the source detail that caused the error.

ValidationError(String)

Creates a new instance of the ValidationError class using the specified error message.

public:
 ValidationError(System::String ^ message);
public ValidationError (string message);
new System.Activities.Validation.ValidationError : string -> System.Activities.Validation.ValidationError
Public Sub New (message As String)

Parameters

message
String

The information about the error.

Applies to

ValidationError(String, Boolean)

Creates a new instance of the ValidationError class using the specified error message and warning indication.

public:
 ValidationError(System::String ^ message, bool isWarning);
public ValidationError (string message, bool isWarning);
new System.Activities.Validation.ValidationError : string * bool -> System.Activities.Validation.ValidationError
Public Sub New (message As String, isWarning As Boolean)

Parameters

message
String

The error message.

isWarning
Boolean

true if the error is a warning; otherwise, false.

Applies to

ValidationError(String, Boolean, String)

Creates a new instance of the ValidationError class using the specified error message, warning indicator, and name of the property that caused the error.

public:
 ValidationError(System::String ^ message, bool isWarning, System::String ^ propertyName);
public ValidationError (string message, bool isWarning, string propertyName);
new System.Activities.Validation.ValidationError : string * bool * string -> System.Activities.Validation.ValidationError
Public Sub New (message As String, isWarning As Boolean, propertyName As String)

Parameters

message
String

The error message.

isWarning
Boolean

An indicator whether the error is a warning.

propertyName
String

The alphanumeric name of the property that generated the error.

Applies to

ValidationError(String, Boolean, String, Object)

Creates a new instance of the ValidationError class using the specified error message, warning indicator, name of the property and the source detail that caused the error.

public:
 ValidationError(System::String ^ message, bool isWarning, System::String ^ propertyName, System::Object ^ sourceDetail);
public ValidationError (string message, bool isWarning, string propertyName, object sourceDetail);
new System.Activities.Validation.ValidationError : string * bool * string * obj -> System.Activities.Validation.ValidationError
Public Sub New (message As String, isWarning As Boolean, propertyName As String, sourceDetail As Object)

Parameters

message
String

The error message.

isWarning
Boolean

An indicator whether the error is a warning.

propertyName
String

The alphanumeric name of the property that generated the error.

sourceDetail
Object

The detail about the source of the error.

Applies to