System.Transactions.TransactionAbortedException.Create C# (CSharp) Метод

Create() статический приватный Метод

static private Create ( string message, Exception innerException, Guid distributedTxId ) : TransactionAbortedException
message string
innerException Exception
distributedTxId Guid
Результат TransactionAbortedException
        internal static new TransactionAbortedException Create(string message, Exception innerException, Guid distributedTxId)
        {
            string messagewithTxId = message;
            if (IncludeDistributedTxId(distributedTxId))
                messagewithTxId = string.Format(SR.DistributedTxIDInTransactionException, messagewithTxId, distributedTxId);

            return TransactionAbortedException.Create(messagewithTxId, innerException);
        }

Same methods

TransactionAbortedException::Create ( string message, Exception innerException ) : TransactionAbortedException

Usage Example

Пример #1
0
 protected override void PromotedTransactionOutcome(InternalTransaction tx)
 {
     if ((tx.innerException == null) && (tx.PromotedTransaction != null))
     {
         tx.innerException = tx.PromotedTransaction.InnerException;
     }
     throw TransactionAbortedException.Create(System.Transactions.SR.GetString("TraceSourceLtm"), tx.innerException);
 }
All Usage Examples Of System.Transactions.TransactionAbortedException::Create
TransactionAbortedException