DesignerTransactionCloseEventArgs Class
Provides data for the TransactionClosed and TransactionClosing events.
For a list of all members of this type, see DesignerTransactionCloseEventArgs Members.
System.Object
System.EventArgs
System.ComponentModel.Design.DesignerTransactionCloseEventArgs
[Visual Basic] <ComVisible(True)> Public Class DesignerTransactionCloseEventArgs Inherits EventArgs [C#] [ComVisible(true)] public class DesignerTransactionCloseEventArgs : EventArgs [C++] [ComVisible(true)] public __gc class DesignerTransactionCloseEventArgs : public EventArgs [JScript] public ComVisible(true) class DesignerTransactionCloseEventArgs extends EventArgs
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Remarks
The TransactionClosed event occurs when a designer finalizes a transaction.
Example
[Visual Basic, C#, C++] The following example demonstrates creating a DesignerTransactionCloseEventArgs.
[Visual Basic] ' 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) ' Whether the transaction has been committed: args.TransactionCommitted Return args End Function [C#] // 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); // Whether the transaction has been committed: args.TransactionCommitted return args; } [C++] // 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. // Whether the transaction has been committed: args.TransactionCommitted return new DesignerTransactionCloseEventArgs(commit); }
[JScript] No example is available for JScript. To view a Visual Basic, C#, or C++ example, click the Language Filter button
in the upper-left corner of the page.
Requirements
Namespace: System.ComponentModel.Design
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
Assembly: System (in System.dll)
See Also
DesignerTransactionCloseEventArgs Members | System.ComponentModel.Design Namespace | DesignerTransactionCloseEventHandler