IDesignerHost.TransactionOpening 事件

定义

添加 TransactionOpening 事件的事件处理程序。Adds an event handler for the TransactionOpening event.

public:
 event EventHandler ^ TransactionOpening;
event EventHandler TransactionOpening;
member this.TransactionOpening : EventHandler 
Event TransactionOpening As EventHandler 

注解

当事务即将开始时发生此事件。This event occurs when a transaction is about to begin.

此方法允许设计器宿主客户端在通知事务已开始的其他处理程序之前执行操作。This method allows designer host clients to perform operations before other handlers are notified that a transaction has begun. 仅当对 CreateTransaction 进行第一次调用时,才调用指定的处理程序。The specified handler is called only when the first call to CreateTransaction is made. 在释放所有事务对象之前,后续调用不会生成此事件。Subsequent calls do not generate this event until all transaction objects have been disposed.

适用于

另请参阅