TransactionEventArgs 클래스

정의

DistributedTransactionStarted, TransactionCompleted 트랜잭션 이벤트에 대한 데이터를 제공합니다.

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

예제

다음 예제에서는 이 형식을 사용하는 방법을 보여 줍니다.

//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);
}

생성자

TransactionEventArgs()

TransactionEventArgs 클래스의 새 인스턴스를 초기화합니다.

속성

Transaction

이벤트 상태가 제공되는 트랜잭션을 가져옵니다.

메서드

Equals(Object)

지정된 개체가 현재 개체와 같은지 확인합니다.

(다음에서 상속됨 Object)
GetHashCode()

기본 해시 함수로 작동합니다.

(다음에서 상속됨 Object)
GetType()

현재 인스턴스의 Type을 가져옵니다.

(다음에서 상속됨 Object)
MemberwiseClone()

현재 Object의 단순 복사본을 만듭니다.

(다음에서 상속됨 Object)
ToString()

현재 개체를 나타내는 문자열을 반환합니다.

(다음에서 상속됨 Object)

적용 대상