DesignerTransactionCloseEventArgs 类
提供有关 TransactionClosed 和 TransactionClosing 事件的数据。
**命名空间:**System.ComponentModel.Design
**程序集:**System(在 system.dll 中)
语法
声明
<ComVisibleAttribute(True)> _
Public Class DesignerTransactionCloseEventArgs
Inherits EventArgs
用法
Dim instance As DesignerTransactionCloseEventArgs
[ComVisibleAttribute(true)]
public class DesignerTransactionCloseEventArgs : EventArgs
[ComVisibleAttribute(true)]
public ref class DesignerTransactionCloseEventArgs : public EventArgs
/** @attribute ComVisibleAttribute(true) */
public class DesignerTransactionCloseEventArgs extends EventArgs
ComVisibleAttribute(true)
public class DesignerTransactionCloseEventArgs extends EventArgs
备注
TransactionClosed 事件在设计器完成事务时发生。
提示
应用于此类的 HostProtectionAttribute 属性 (Attribute) 具有以下 Resources 属性 (Property) 值:SharedState。HostProtectionAttribute 不影响桌面应用程序(桌面应用程序一般通过双击图标,键入命令或在浏览器中输入 URL 启动)。有关更多信息,请参见 HostProtectionAttribute 类或 SQL Server 编程和宿主保护属性。
示例
下面的代码示例演示如何创建 DesignerTransactionCloseEventArgs。
' 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
// 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;
}
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(boolean commit)
{
// Creates a component changed event args with the specified arguments.
DesignerTransactionCloseEventArgs args
= new DesignerTransactionCloseEventArgs(commit);
// Whether the transaction has been committed:
// args.TransactionCommitted
return args;
} //CreateDesignerTransactionCloseEventArgs
.NET Framework 安全性
- NamedPermissionSet 用于对系统资源进行完全访问。要求值:LinkDemand、InheritanceDemand。关联状态:FullTrust
继承层次结构
System.Object
System.EventArgs
System.ComponentModel.Design.DesignerTransactionCloseEventArgs
线程安全
此类型的任何公共静态(Visual Basic 中的 Shared)成员都是线程安全的,但不保证所有实例成员都是线程安全的。
平台
Windows 98、Windows 2000 SP4、Windows Millennium Edition、Windows Server 2003、Windows XP Media Center Edition、Windows XP Professional x64 Edition、Windows XP SP2、Windows XP Starter Edition
.NET Framework 并不是对每个平台的所有版本都提供支持。有关受支持版本的列表,请参见系统要求。
版本信息
.NET Framework
受以下版本支持:2.0、1.1、1.0
请参见
参考
DesignerTransactionCloseEventArgs 成员
System.ComponentModel.Design 命名空间
DesignerTransactionCloseEventHandler