DesignerTransactionCloseEventArgs 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
提供 TransactionClosed 和 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
- 繼承
- 屬性
範例
下列程式代碼範例示範如何建立 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 事件。
建構函式
DesignerTransactionCloseEventArgs(Boolean) |
已淘汰.
已淘汰.
已淘汰.
使用會指出設計工具是否在異動上呼叫 DesignerTransactionCloseEventArgs 的指定值,初始化 Commit() 類別的新執行個體。 |
DesignerTransactionCloseEventArgs(Boolean, Boolean) |
初始化 DesignerTransactionCloseEventArgs 類別的新執行個體。 |
屬性
LastTransaction |
取得值,指出這是否為要關閉的最後一個異動。 |
TransactionCommitted |
指示設計工具是否在異動上呼叫 Commit()。 |
方法
Equals(Object) |
判斷指定的物件是否等於目前的物件。 (繼承來源 Object) |
GetHashCode() |
做為預設雜湊函式。 (繼承來源 Object) |
GetType() |
取得目前執行個體的 Type。 (繼承來源 Object) |
MemberwiseClone() |
建立目前 Object 的淺層複製。 (繼承來源 Object) |
ToString() |
傳回代表目前物件的字串。 (繼承來源 Object) |