DesignerTransactionCloseEventArgs Klasa

Definicja

Dostarcza dane dla zdarzeń TransactionClosed i 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
Dziedziczenie
DesignerTransactionCloseEventArgs
Atrybuty

Przykłady

Poniższy przykład kodu przedstawia tworzenie obiektu 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

Uwagi

Zdarzenie TransactionClosed występuje, gdy projektant finalizuje transakcję.

Konstruktory

DesignerTransactionCloseEventArgs(Boolean)
Przestarzałe.
Przestarzałe.
Przestarzałe.

Inicjuje DesignerTransactionCloseEventArgs nowe wystąpienie klasy przy użyciu określonej wartości, która wskazuje, czy projektant wezwał Commit() transakcję.

DesignerTransactionCloseEventArgs(Boolean, Boolean)

Inicjuje nowe wystąpienie klasy DesignerTransactionCloseEventArgs.

Właściwości

LastTransaction

Pobiera wartość wskazującą, czy jest to ostatnia transakcja do zamknięcia.

TransactionCommitted

Wskazuje, czy projektant zadzwonił Commit() do transakcji.

Metody

Equals(Object)

Określa, czy dany obiekt jest taki sam, jak bieżący obiekt.

(Odziedziczone po Object)
GetHashCode()

Służy jako domyślna funkcja skrótu.

(Odziedziczone po Object)
GetType()

Type Pobiera wartość bieżącego wystąpienia.

(Odziedziczone po Object)
MemberwiseClone()

Tworzy płytkią kopię bieżącego Objectelementu .

(Odziedziczone po Object)
ToString()

Zwraca ciąg reprezentujący bieżący obiekt.

(Odziedziczone po Object)

Dotyczy

Zobacz też