PersistenceException Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應