TransactionEventArgs TransactionEventArgs TransactionEventArgs TransactionEventArgs Class

Definition

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
Inheritance
TransactionEventArgsTransactionEventArgsTransactionEventArgsTransactionEventArgs

Examples

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

}

Constructors

TransactionEventArgs() TransactionEventArgs() TransactionEventArgs() TransactionEventArgs()

Initializes a new instance of the TransactionEventArgs class.

Properties

Transaction Transaction Transaction Transaction

Gets the transaction for which event status is provided.

Methods

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to