TransactionPromotionException 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 TransactionPromotionException class.
Overloads
| Name | Description |
|---|---|
| TransactionPromotionException() |
Initializes a new instance of the TransactionPromotionException class. |
| TransactionPromotionException(String) |
Initializes a new instance of the TransactionPromotionException class with the specified message. |
| TransactionPromotionException(SerializationInfo, StreamingContext) |
Initializes a new instance of the TransactionPromotionException class with the specified serialization and streaming context information. |
| TransactionPromotionException(String, Exception) |
Initializes a new instance of the TransactionPromotionException class with the specified message and inner exception. |
TransactionPromotionException()
Initializes a new instance of the TransactionPromotionException class.
public:
TransactionPromotionException();
public TransactionPromotionException();
Public Sub New ()
Applies to
TransactionPromotionException(String)
Initializes a new instance of the TransactionPromotionException class with the specified message.
public:
TransactionPromotionException(System::String ^ message);
public TransactionPromotionException(string message);
new System.Transactions.TransactionPromotionException : string -> System.Transactions.TransactionPromotionException
Public Sub New (message As String)
Parameters
Applies to
TransactionPromotionException(SerializationInfo, StreamingContext)
Initializes a new instance of the TransactionPromotionException class with the specified serialization and streaming context information.
protected:
TransactionPromotionException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected TransactionPromotionException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new System.Transactions.TransactionPromotionException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Transactions.TransactionPromotionException
Protected Sub New (info As SerializationInfo, context As StreamingContext)
Parameters
- info
- SerializationInfo
A SerializationInfo object that describes a failed serialization.
- context
- StreamingContext
A SerializationInfo object that describes a failed serialization context.
Applies to
TransactionPromotionException(String, Exception)
Initializes a new instance of the TransactionPromotionException class with the specified message and inner exception.
public:
TransactionPromotionException(System::String ^ message, Exception ^ innerException);
public TransactionPromotionException(string message, Exception innerException);
new System.Transactions.TransactionPromotionException : string * Exception -> System.Transactions.TransactionPromotionException
Public Sub New (message As String, innerException As Exception)
Parameters
- innerException
- Exception
Gets the exception instance that causes the current exception. For more information, see the InnerException property.