Bewerken

Delen via


ValidationException Constructors

Definition

Initializes a new instance of the ValidationException class.

Overloads

ValidationException()

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

ValidationException(String)

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

ValidationException(SerializationInfo, StreamingContext)

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

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()

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

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

Applies to

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

The error message that explains the reason for the exception.

Applies to

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

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

context
StreamingContext

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

Applies to

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

The error message that explains the reason for the exception.

innerException
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