ValidationException ValidationException ValidationException ValidationException Constructors

Definition

Overloads

ValidationException() ValidationException() ValidationException()

Initializes a new instance of the ValidationException class using default values.

ValidationException(String) ValidationException(String) ValidationException(String) ValidationException(String)

Initializes a new instance of the ValidationException class with a specified error message.

ValidationException(SerializationInfo, StreamingContext) ValidationException(SerializationInfo, StreamingContext) ValidationException(SerializationInfo, StreamingContext) ValidationException(SerializationInfo, StreamingContext)

Initializes a new instance of the ValidationException class with serialized data.

ValidationException(String, Exception) ValidationException(String, Exception) ValidationException(String, Exception) ValidationException(String, Exception)

Initializes a new instance of the ValidationException class with a specified error message and a reference to the inner exception that is the cause of this exception.

ValidationException() ValidationException() ValidationException()

Initializes a new instance of the ValidationException class using default values.

public:
 ValidationException();
public ValidationException ();
Public Sub New ()

ValidationException(String) ValidationException(String) ValidationException(String) ValidationException(String)

Initializes a new instance of the ValidationException class with a specified error message.

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

Parameters

message
String String String String

The error message that explains the reason for the exception.

ValidationException(SerializationInfo, StreamingContext) ValidationException(SerializationInfo, StreamingContext) ValidationException(SerializationInfo, StreamingContext) ValidationException(SerializationInfo, StreamingContext)

Initializes a new instance of the ValidationException class with serialized data.

protected:
 ValidationException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected ValidationException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new System.Activities.ValidationException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Activities.ValidationException
Protected Sub New (info As SerializationInfo, context As StreamingContext)

Parameters

info
SerializationInfo SerializationInfo SerializationInfo SerializationInfo

The SerializationInfo that holds the serialized object data about the exception being thrown.

context
StreamingContext StreamingContext StreamingContext StreamingContext

The StreamingContext that contains contextual information about the source or destination.

ValidationException(String, Exception) ValidationException(String, Exception) ValidationException(String, Exception) ValidationException(String, Exception)

Initializes a new instance of the ValidationException class with a specified error message and a reference to the inner exception that is the cause of this exception.

public:
 ValidationException(System::String ^ message, Exception ^ innerException);
public ValidationException (string message, Exception innerException);
new System.Activities.ValidationException : string * Exception -> System.Activities.ValidationException
Public Sub New (message As String, innerException As Exception)

Parameters

message
String String String String

The error message that explains the reason for the exception.

innerException
Exception Exception Exception Exception

The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified.

Applies to