Bewerken

Delen via


PersistenceException Constructors

Definition

Initializes a new instance of the PersistenceException class.

Overloads

PersistenceException()

Initializes a new instance of the PersistenceException class.

PersistenceException(String)

Initializes a new instance of the PersistenceException class.

PersistenceException(SerializationInfo, StreamingContext)

Initializes a new instance of the PersistenceException class.

PersistenceException(String, Exception)

Initializes a new instance of the PersistenceException class.

PersistenceException()

Initializes a new instance of the PersistenceException class.

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

Applies to

PersistenceException(String)

Initializes a new instance of the PersistenceException class.

public:
 PersistenceException(System::String ^ message);
public PersistenceException (string message);
new System.ServiceModel.Persistence.PersistenceException : string -> System.ServiceModel.Persistence.PersistenceException
Public Sub New (message As String)

Parameters

message
String

The error message that explains the reason for the exception.

Applies to

PersistenceException(SerializationInfo, StreamingContext)

Initializes a new instance of the PersistenceException class.

protected:
 PersistenceException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected PersistenceException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new System.ServiceModel.Persistence.PersistenceException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.ServiceModel.Persistence.PersistenceException
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

PersistenceException(String, Exception)

Initializes a new instance of the PersistenceException class.

public:
 PersistenceException(System::String ^ message, Exception ^ innerException);
public PersistenceException (string message, Exception innerException);
new System.ServiceModel.Persistence.PersistenceException : string * Exception -> System.ServiceModel.Persistence.PersistenceException
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 caused the PersistenceException.

Applies to