TransactionClosed イベントと TransactionClosing イベントのデータを提供します。
名前空間: System.ComponentModel.Design
アセンブリ: System (system.dll 内)
構文
'宣言
<ComVisibleAttribute(True)> _
Public Class DesignerTransactionCloseEventArgs
Inherits EventArgs
'使用
Dim instance As DesignerTransactionCloseEventArgs
[ComVisibleAttribute(true)]
public class DesignerTransactionCloseEventArgs : EventArgs
[ComVisibleAttribute(true)]
public ref class DesignerTransactionCloseEventArgs : public EventArgs
/** @attribute ComVisibleAttribute(true) */
public class DesignerTransactionCloseEventArgs extends EventArgs
ComVisibleAttribute(true)
public class DesignerTransactionCloseEventArgs extends EventArgs
解説
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 のセキュリティ
- NamedPermissionSet (システム リソースへのフル アクセス許可)。LinkDemand、InheritanceDemand (要求値)。FullTrust (関連する状態)。
継承階層
System.Object
System.EventArgs
System.ComponentModel.Design.DesignerTransactionCloseEventArgs
スレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバの場合は、スレッド セーフであるとは限りません。
プラットフォーム
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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
バージョン情報
.NET Framework
サポート対象 : 2.0、1.1、1.0
参照
関連項目
DesignerTransactionCloseEventArgs メンバ
System.ComponentModel.Design 名前空間
DesignerTransactionCloseEventHandler