DesignerTransactionCloseEventArgs クラス
アセンブリ: System (system.dll 内)
構文
解説TransactionClosed イベントは、デザイナがトランザクションを終了するときに発生します。
メモ |
|---|
| このクラスに適用される HostProtectionAttribute 属性の Resources プロパティの値は、SharedState です。HostProtectionAttribute は、デスクトップ アプリケーション (一般的には、アイコンをダブルクリック、コマンドを入力、またはブラウザに URL を入力して起動するアプリケーション) には影響しません。詳細については、HostProtectionAttribute クラスのトピックまたは「SQL Server プログラミングとホスト保護属性」を参照してください。 |
使用例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 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
// 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; }
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(boolean commit) { // Creates a component changed event args with the specified arguments. DesignerTransactionCloseEventArgs args = new DesignerTransactionCloseEventArgs(commit); // Whether the transaction has been committed: // args.TransactionCommitted return args; } //CreateDesignerTransactionCloseEventArgs
.NET Framework のセキュリティ
継承階層System.EventArgs
System.ComponentModel.Design.DesignerTransactionCloseEventArgs
スレッド セーフ
プラットフォームWindows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
バージョン情報
参照DesignerTransactionCloseEventArgs コンストラクタ (Boolean, Boolean)
アセンブリ: System (system.dll 内)
構文Dim commit As Boolean Dim lastTransaction As Boolean Dim instance As New DesignerTransactionCloseEventArgs(commit, lastTransaction)
解説
.NET Framework のセキュリティ
プラットフォームWindows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
バージョン情報
参照DesignerTransactionCloseEventArgs コンストラクタ (Boolean)
メモ : このコンストラクタは、互換性のために残されています。 旧式でない代替が必要な場合は、DesignerTransactionCloseEventArgs(Boolean,Boolean) を使用してください。
デザイナがトランザクションに対して Commit を呼び出したかどうかを示す値を指定して、DesignerTransactionCloseEventArgs クラスの新しいインスタンスを初期化します。 名前空間: System.ComponentModel.Designアセンブリ: System (system.dll 内)
構文<ObsoleteAttribute("This constructor is obsolete. Use DesignerTransactionCloseEventArgs(bool, bool) instead. http://go.microsoft.com/fwlink/?linkid=14202")> _ Public Sub New ( _ commit As Boolean _ )
[ObsoleteAttribute("This constructor is obsolete. Use DesignerTransactionCloseEventArgs(bool,
bool) instead. http://go.microsoft.com/fwlink/?linkid=14202")]
public DesignerTransactionCloseEventArgs (
bool commit
)
[ObsoleteAttribute(L"This constructor is obsolete. Use DesignerTransactionCloseEventArgs(bool, bool) instead. http://go.microsoft.com/fwlink/?linkid=14202")] public: DesignerTransactionCloseEventArgs ( bool commit )
/** @attribute ObsoleteAttribute("This constructor is obsolete. Use DesignerTransactionCloseEventArgs(bool, bool) instead. http://go.microsoft.com/fwlink/?linkid=14202") */ public DesignerTransactionCloseEventArgs ( boolean commit )
ObsoleteAttribute("This constructor is obsolete. Use DesignerTransactionCloseEventArgs(bool,
bool) instead. http://go.microsoft.com/fwlink/?linkid=14202")
public function DesignerTransactionCloseEventArgs
(
commit : boolean
)
.NET Framework のセキュリティ
プラットフォームWindows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
バージョン情報
参照DesignerTransactionCloseEventArgs コンストラクタ
オーバーロードの一覧| 名前 | 説明 |
|---|---|
| DesignerTransactionCloseEventArgs (Boolean) | デザイナがトランザクションに対して Commit を呼び出したかどうかを示す値を指定して、DesignerTransactionCloseEventArgs クラスの新しいインスタンスを初期化します。 |
| DesignerTransactionCloseEventArgs (Boolean, Boolean) | DesignerTransactionCloseEventArgs クラスの新しいインスタンスを初期化します。 |
参照DesignerTransactionCloseEventArgs プロパティ
パブリック プロパティ| 名前 | 説明 | |
|---|---|---|
| LastTransaction | このトランザクションが最後に閉じるトランザクションかどうかを示す値を取得します。 |
| TransactionCommitted | デザイナがトランザクションに対して Commit を呼び出したかどうかを示します。 |
参照DesignerTransactionCloseEventArgs メソッド
パブリック メソッド| 名前 | 説明 | |
|---|---|---|
| Equals | オーバーロードされます。 2 つの Object インスタンスが等しいかどうかを判断します。 ( Object から継承されます。) |
| GetHashCode | 特定の型のハッシュ関数として機能します。GetHashCode は、ハッシュ アルゴリズムや、ハッシュ テーブルのようなデータ構造での使用に適しています。 ( Object から継承されます。) |
| GetType | 現在のインスタンスの Type を取得します。 ( Object から継承されます。) |
| ReferenceEquals | 指定した複数の Object インスタンスが同一かどうかを判断します。 ( Object から継承されます。) |
| ToString | 現在の Object を表す String を返します。 ( Object から継承されます。) |
プロテクト メソッド| 名前 | 説明 | |
|---|---|---|
| Finalize | Object がガベージ コレクションにより収集される前に、その Object がリソースを解放し、その他のクリーンアップ操作を実行できるようにします。 ( Object から継承されます。) |
| MemberwiseClone | 現在の Object の簡易コピーを作成します。 ( Object から継承されます。) |
参照DesignerTransactionCloseEventArgs メンバ
TransactionClosed イベントと TransactionClosing イベントのデータを提供します。
DesignerTransactionCloseEventArgs データ型で公開されるメンバを以下の表に示します。
パブリック コンストラクタ| 名前 | 説明 | |
|---|---|---|
| DesignerTransactionCloseEventArgs | オーバーロードされます。 DesignerTransactionCloseEventArgs クラスの新しいインスタンスを初期化します。 |
パブリック プロパティ| 名前 | 説明 | |
|---|---|---|
| LastTransaction | このトランザクションが最後に閉じるトランザクションかどうかを示す値を取得します。 |
| TransactionCommitted | デザイナがトランザクションに対して Commit を呼び出したかどうかを示します。 |
パブリック メソッド| 名前 | 説明 | |
|---|---|---|
| Equals | オーバーロードされます。 2 つの Object インスタンスが等しいかどうかを判断します。 (Object から継承されます。) |
| GetHashCode | 特定の型のハッシュ関数として機能します。GetHashCode は、ハッシュ アルゴリズムや、ハッシュ テーブルのようなデータ構造での使用に適しています。 (Object から継承されます。) |
| GetType | 現在のインスタンスの Type を取得します。 (Object から継承されます。) |
| ReferenceEquals | 指定した複数の Object インスタンスが同一かどうかを判断します。 (Object から継承されます。) |
| ToString | 現在の Object を表す String を返します。 (Object から継承されます。) |
プロテクト メソッド| 名前 | 説明 | |
|---|---|---|
| Finalize | Object がガベージ コレクションにより収集される前に、その Object がリソースを解放し、その他のクリーンアップ操作を実行できるようにします。 (Object から継承されます。) |
| MemberwiseClone | 現在の Object の簡易コピーを作成します。 (Object から継承されます。) |
参照- DesignerTransactionCloseEventArgsのページへのリンク
.gif)