DesignerTransactionCloseEventArgs 类

定义

提供有关 TransactionClosedTransactionClosing 事件的数据。Provides data for the TransactionClosed and TransactionClosing events.

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

示例

下面的代码示例演示如何创建 DesignerTransactionCloseEventArgsThe following code example demonstrates creating a 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 事件。The TransactionClosed event occurs when a designer finalizes a transaction.

构造函数

DesignerTransactionCloseEventArgs(Boolean)

使用指示设计器是否已对事务调用 DesignerTransactionCloseEventArgs 的指定值来初始化 Commit() 类的新实例。Initializes a new instance of the DesignerTransactionCloseEventArgs class, using the specified value that indicates whether the designer called Commit() on the transaction.

DesignerTransactionCloseEventArgs(Boolean, Boolean)

初始化 DesignerTransactionCloseEventArgs 类的新实例。Initializes a new instance of the DesignerTransactionCloseEventArgs class.

属性

LastTransaction

获取一个值,该值指示这是不是最后要关闭的事务。Gets a value indicating whether this is the last transaction to close.

TransactionCommitted

指示设计器是否已对事务调用 Commit()Indicates whether the designer called Commit() on the transaction.

方法

Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetHashCode()

用作默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
ToString()

返回一个表示当前对象的 string。Returns a string that represents the current object.

(继承自 Object)

安全性

NamedPermissionSet
用于完全访问系统资源。for full access to system resources. 需求值: LinkDemandInheritanceDemandDemand values: LinkDemand, InheritanceDemand. 关联状态:Associated state:

适用于

另请参阅