Editar

Compartilhar 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 by using the specified message.

PersistenceException(SerializationInfo, StreamingContext)

Initializes a new instance of the PersistenceException class by using the specified SerializationInfo and the specified StreamingContext.

PersistenceException(String, Exception)

Initializes a new instance of the PersistenceException by using the specified message and Exception.

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 by using the specified message.

public:
 PersistenceException(System::String ^ message);
public PersistenceException (string message);
new System.Workflow.Runtime.Hosting.PersistenceException : string -> System.Workflow.Runtime.Hosting.PersistenceException
Public Sub New (message As String)

Parameters

message
String

A description of the cause of the exception.

Applies to

PersistenceException(SerializationInfo, StreamingContext)

Initializes a new instance of the PersistenceException class by using the specified SerializationInfo and the specified StreamingContext.

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.Workflow.Runtime.Hosting.PersistenceException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Workflow.Runtime.Hosting.PersistenceException
Protected Sub New (info As SerializationInfo, context As StreamingContext)

Parameters

info
SerializationInfo

A SerializationInfo that holds the serialized object data.

context
StreamingContext

A StreamingContext that holds contextual information about the source or destination.

Remarks

This constructor is called during deserialization to reconstitute the exception object transmitted over a stream. For more information, see XML and SOAP Serialization.

Applies to

PersistenceException(String, Exception)

Initializes a new instance of the PersistenceException by using the specified message and Exception.

public:
 PersistenceException(System::String ^ message, Exception ^ innerException);
public PersistenceException (string message, Exception innerException);
new System.Workflow.Runtime.Hosting.PersistenceException : string * Exception -> System.Workflow.Runtime.Hosting.PersistenceException
Public Sub New (message As String, innerException As Exception)

Parameters

message
String

A description of the cause of the exception.

innerException
Exception

The exception that caused the PersistenceException to be thrown.

Applies to