TransactionEventArgs Klasa

Definicja

Dostarcza dane dla następujących zdarzeń transakcji: DistributedTransactionStarted, TransactionCompleted.

public ref class TransactionEventArgs : EventArgs
public class TransactionEventArgs : EventArgs
type TransactionEventArgs = class
    inherit EventArgs
Public Class TransactionEventArgs
Inherits EventArgs
Dziedziczenie
TransactionEventArgs

Przykłady

W poniższym przykładzie pokazano, jak ten typ jest używany.

//Transaction completed event handler
static void Current_TransactionCompleted(object sender, TransactionEventArgs e)
{

   Console.WriteLine("A transaction has completed:");
   Console.WriteLine("ID:{0}",   e.Transaction.TransactionInformation.LocalIdentifier);
   Console.WriteLine("Distributed ID: {0}", e.Transaction.TransactionInformation.DistributedIdentifier);
   Console.WriteLine("Status:         {0}", e.Transaction.TransactionInformation.Status);
   Console.WriteLine("IsolationLevel: {0}", e.Transaction.IsolationLevel);
}

Konstruktory

TransactionEventArgs()

Inicjuje nowe wystąpienie klasy TransactionEventArgs.

Właściwości

Transaction

Pobiera transakcję, dla której podano stan zdarzenia.

Metody

Equals(Object)

Określa, czy dany obiekt jest taki sam, jak bieżący obiekt.

(Odziedziczone po Object)
GetHashCode()

Służy jako domyślna funkcja skrótu.

(Odziedziczone po Object)
GetType()

Type Pobiera wartość bieżącego wystąpienia.

(Odziedziczone po Object)
MemberwiseClone()

Tworzy płytkią kopię bieżącego Objectelementu .

(Odziedziczone po Object)
ToString()

Zwraca ciąg reprezentujący bieżący obiekt.

(Odziedziczone po Object)

Dotyczy