DesignerTransactionCloseEventArgs
Class
Definition
Provides data for the TransactionClosed and TransactionClosing events.
[System.Runtime.InteropServices.ComVisible(true)]
public class DesignerTransactionCloseEventArgs : EventArgs
- Inheritance
- Attributes
Inherited Members
System.EventArgs
System.Object
Examples
The 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
Remarks
The TransactionClosed event occurs when a designer finalizes a transaction.
Constructors
| DesignerTransactionCloseEventArgs(Boolean) |
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) |
Initializes a new instance of the DesignerTransactionCloseEventArgs class. |
Properties
| LastTransaction |
Gets a value indicating whether this is the last transaction to close. |
| TransactionCommitted |
Indicates whether the designer called Commit() on the transaction. |