DesignerTransactionCloseEventArgs Sınıf

Tanım

TransactionClosed ve TransactionClosing olayları için veri sağlar.

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
Devralma
DesignerTransactionCloseEventArgs
Öznitelikler

Örnekler

Aşağıdaki kod örneği, oluşturma DesignerTransactionCloseEventArgsişlemini gösterir.

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

Açıklamalar

Olay, TransactionClosed tasarımcı bir işlemi sonlandırdığında gerçekleşir.

Oluşturucular

Name Description
DesignerTransactionCloseEventArgs(Boolean, Boolean)

DesignerTransactionCloseEventArgs sınıfının yeni bir örneğini başlatır.

DesignerTransactionCloseEventArgs(Boolean)
Geçersiz.
Geçersiz.
Geçersiz.

Tasarımcının işlem üzerinde DesignerTransactionCloseEventArgs çağrı Commit() yapıp yapmadığını gösteren belirtilen değeri kullanarak sınıfın yeni bir örneğini başlatır.

Özellikler

Name Description
LastTransaction

Bunun kapatılması gereken son işlem olup olmadığını belirten bir değer alır.

TransactionCommitted

Tasarımcının işlem üzerinde çağırıp çağırmadığını Commit() gösterir.

Yöntemler

Name Description
Equals(Object)

Belirtilen nesnenin geçerli nesneye eşit olup olmadığını belirler.

(Devralındığı yer: Object)
GetHashCode()

Varsayılan karma işlevi işlevi görür.

(Devralındığı yer: Object)
GetType()

Geçerli örneğin Type alır.

(Devralındığı yer: Object)
MemberwiseClone()

Geçerli Objectbasit bir kopyasını oluşturur.

(Devralındığı yer: Object)
ToString()

Geçerli nesneyi temsil eden bir dize döndürür.

(Devralındığı yer: Object)

Şunlara uygulanır

Ayrıca bkz.