DesignerTransactionCloseEventArgs Class

 

Provides data for the TransactionClosed and TransactionClosing events.

Namespace:   System.ComponentModel.Design
Assembly:  System (in System.dll)

System.Object
  System.EventArgs
    System.ComponentModel.Design.DesignerTransactionCloseEventArgs

[ComVisibleAttribute(true)]
[HostProtectionAttribute(SecurityAction.LinkDemand, SharedState = true)]
[PermissionSetAttribute(SecurityAction.LinkDemand, Name = "FullTrust")]
[PermissionSetAttribute(SecurityAction.InheritanceDemand, Name = "FullTrust")]
public class DesignerTransactionCloseEventArgs : EventArgs

NameDescription
System_CAPS_pubmethodDesignerTransactionCloseEventArgs(Boolean)

Obsolete. Initializes a new instance of the DesignerTransactionCloseEventArgs class, using the specified value that indicates whether the designer called Commit on the transaction.

System_CAPS_pubmethodDesignerTransactionCloseEventArgs(Boolean, Boolean)

Initializes a new instance of the DesignerTransactionCloseEventArgs class.

NameDescription
System_CAPS_pubpropertyLastTransaction

Gets a value indicating whether this is the last transaction to close.

System_CAPS_pubpropertyTransactionCommitted

Indicates whether the designer called Commit on the transaction.

NameDescription
System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

The TransactionClosed event occurs when a designer finalizes a transaction.

The following code example demonstrates creating a 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 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;            
}

NamedPermissionSet

for full access to system resources. Demand values: LinkDemand, InheritanceDemand. Associated state:

.NET Framework
Available since 1.1

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: