TransactionStartedEventHandler 委托

定义

表示将处理 DistributedTransactionStarted 类的 TransactionManager 事件的方法。Represents the method that will handle the DistributedTransactionStarted event of a TransactionManager class.

public delegate void TransactionStartedEventHandler(System::Object ^ sender, TransactionEventArgs ^ e);
public delegate void TransactionStartedEventHandler(object? sender, TransactionEventArgs e);
public delegate void TransactionStartedEventHandler(object sender, TransactionEventArgs e);
type TransactionStartedEventHandler = delegate of obj * TransactionEventArgs -> unit
Public Delegate Sub TransactionStartedEventHandler(sender As Object, e As TransactionEventArgs)

参数

sender
Object

事件源。The source of the event.

e
TransactionEventArgs

包含事务的 TransactionEventArgs,可以从该事务中检索事务信息。The TransactionEventArgs that contains the transaction from which transaction information can be retrieved.

扩展方法

GetMethodInfo(Delegate)

获取指示指定委托表示的方法的对象。Gets an object that represents the method represented by the specified delegate.

适用于