TransactionEventArgs 클래스
정의
DistributedTransactionStarted, TransactionCompleted 트랜잭션 이벤트에 대한 데이터를 제공합니다.Provides data for the following transaction events: DistributedTransactionStarted, TransactionCompleted.
public ref class TransactionEventArgs : EventArgs
public class TransactionEventArgs : EventArgs
type TransactionEventArgs = class
inherit EventArgs
Public Class TransactionEventArgs
Inherits EventArgs
- 상속
예제
다음 예제에서는이 형식을 사용 하는 방법을 보여 줍니다.The following example demonstrates how this type is used.
//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 클래스의 새 인스턴스를 초기화합니다.Initializes a new instance of the TransactionEventArgs class. |
속성
Transaction |
이벤트 상태가 제공되는 트랜잭션을 가져옵니다.Gets the transaction for which event status is provided. |
메서드
Equals(Object) |
지정된 개체가 현재 개체와 같은지 확인합니다.Determines whether the specified object is equal to the current object. (다음에서 상속됨 Object) |
GetHashCode() |
기본 해시 함수로 작동합니다.Serves as the default hash function. (다음에서 상속됨 Object) |
GetType() |
현재 인스턴스의 Type을 가져옵니다.Gets the Type of the current instance. (다음에서 상속됨 Object) |
MemberwiseClone() |
현재 Object의 단순 복사본을 만듭니다.Creates a shallow copy of the current Object. (다음에서 상속됨 Object) |
ToString() |
현재 개체를 나타내는 문자열을 반환합니다.Returns a string that represents the current object. (다음에서 상속됨 Object) |