DesignerTransactionCloseEventArgs 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
提供有关 TransactionClosed 和 TransactionClosing 事件的数据。
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。
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) |
已过时.
已过时.
已过时.
使用指示设计器是否已对事务调用 DesignerTransactionCloseEventArgs 的指定值来初始化 Commit() 类的新实例。 |
DesignerTransactionCloseEventArgs(Boolean, Boolean) |
初始化 DesignerTransactionCloseEventArgs 类的新实例。 |
属性
LastTransaction |
获取一个值,该值指示这是不是最后要关闭的事务。 |
TransactionCommitted |
指示设计器是否已对事务调用 Commit()。 |
方法
Equals(Object) |
确定指定对象是否等于当前对象。 (继承自 Object) |
GetHashCode() |
作为默认哈希函数。 (继承自 Object) |
GetType() |
获取当前实例的 Type。 (继承自 Object) |
MemberwiseClone() |
创建当前 Object 的浅表副本。 (继承自 Object) |
ToString() |
返回表示当前对象的字符串。 (继承自 Object) |