DesignerTransactionCloseEventArgs 类

定义

TransactionClosedTransactionClosing事件提供数据。

public ref class DesignerTransactionCloseEventArgs : EventArgs
public class DesignerTransactionCloseEventArgs : EventArgs
[System.Runtime.InteropServices.ComVisible(true)]
public class DesignerTransactionCloseEventArgs : EventArgs
type DesignerTransactionCloseEventArgs = class
    inherit EventArgs
[<System.Runtime.InteropServices.ComVisible(true)>]
type DesignerTransactionCloseEventArgs = class
    inherit EventArgs
Public Class DesignerTransactionCloseEventArgs
Inherits EventArgs
继承
DesignerTransactionCloseEventArgs
属性

示例

下面的代码示例演示如何创建一个 DesignerTransactionCloseEventArgs

public:
   // This example method creates a DesignerTransactionCloseEventArgs using the specified argument.
   // Typically, this type of event args is created by a design mode subsystem.
   DesignerTransactionCloseEventArgs^ CreateDesignerTransactionCloseEventArgs( bool commit )
   {
      // Creates a component changed event args with the specified arguments.
      DesignerTransactionCloseEventArgs^ args = gcnew DesignerTransactionCloseEventArgs( commit );

      // Whether the transaction has been committed:  args.TransactionCommitted

      return args;
   }
// This example method creates a DesignerTransactionCloseEventArgs using the specified argument.
// Typically, this type of event args is created by a design mode subsystem.            
public DesignerTransactionCloseEventArgs CreateDesignerTransactionCloseEventArgs(bool commit)
{            
    // Creates a component changed event args with the specified arguments.
    DesignerTransactionCloseEventArgs args = new DesignerTransactionCloseEventArgs(commit, false);

    // Whether the transaction has been committed:  args.TransactionCommitted
    
    return args;            
}
' This example method creates a DesignerTransactionCloseEventArgs using the specified argument.
' Typically, this type of event args is created by a design mode subsystem.            
Public Function CreateDesignerTransactionCloseEventArgs(ByVal commit As Boolean) As DesignerTransactionCloseEventArgs

    ' Creates a component changed event args with the specified arguments.
    Dim args As New DesignerTransactionCloseEventArgs(commit, False)

    ' Whether the transaction has been committed:  args.TransactionCommitted

    Return args
End Function

注解

TransactionClosed 设计器完成事务时发生该事件。

构造函数

名称 说明
DesignerTransactionCloseEventArgs(Boolean, Boolean)

初始化 DesignerTransactionCloseEventArgs 类的新实例。

DesignerTransactionCloseEventArgs(Boolean)
已过时.
已过时.
已过时.

使用指定值初始化类的新实例 DesignerTransactionCloseEventArgs ,该值指示设计器是否在事务上调用 Commit()

属性

名称 说明
LastTransaction

获取一个值,该值指示这是要关闭的最后一个事务。

TransactionCommitted

指示是否对事务调用 Commit() 设计器。

方法

名称 说明
Equals(Object)

确定指定的对象是否等于当前对象。

(继承自 Object)
GetHashCode()

用作默认哈希函数。

(继承自 Object)
GetType()

获取当前实例的 Type

(继承自 Object)
MemberwiseClone()

创建当前 Object的浅表副本。

(继承自 Object)
ToString()

返回一个表示当前对象的字符串。

(继承自 Object)

适用于

另请参阅