DesignerTransactionCloseEventArgs 類別

定義

提供 TransactionClosedTransactionClosing 事件的數據。

public ref class DesignerTransactionCloseEventArgs : EventArgs
[System.Runtime.InteropServices.ComVisible(true)]
public class DesignerTransactionCloseEventArgs : EventArgs
public class DesignerTransactionCloseEventArgs : EventArgs
[<System.Runtime.InteropServices.ComVisible(true)>]
type DesignerTransactionCloseEventArgs = class
    inherit EventArgs
type DesignerTransactionCloseEventArgs = class
    inherit EventArgs
Public Class DesignerTransactionCloseEventArgs
Inherits EventArgs
繼承
DesignerTransactionCloseEventArgs
屬性

範例

以下程式碼範例示範如何建立一個 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

備註

當設計師完成交易時,該 TransactionClosed 事件就發生了。

建構函式

名稱 Description
DesignerTransactionCloseEventArgs(Boolean, Boolean)

初始化 DesignerTransactionCloseEventArgs 類別的新執行個體。

DesignerTransactionCloseEventArgs(Boolean)
已淘汰.
已淘汰.

初始化類別的新實例 DesignerTransactionCloseEventArgs ,使用指定值,該值表示設計 Commit() 者是否呼叫該交易。

屬性

名稱 Description
LastTransaction

會得到一個值,表示這是否是最後一筆成交的交易。

TransactionCommitted

表示設計師 Commit() 是否呼叫該交易。

方法

名稱 Description
Equals(Object)

判斷指定的 物件是否等於目前的物件。

(繼承來源 Object)
GetHashCode()

做為預設雜湊函式。

(繼承來源 Object)
GetType()

取得目前實例的 Type

(繼承來源 Object)
MemberwiseClone()

建立目前 Object的淺層複本。

(繼承來源 Object)
ToString()

傳回表示目前 物件的字串。

(繼承來源 Object)

適用於

另請參閱