TransactionManager.CurrentTransaction プロパティ

現在のアクティブなトランザクションを取得します。

名前空間:  Microsoft.VisualStudio.Modeling
アセンブリ:  Microsoft.VisualStudio.Modeling.Sdk.11.0 (Microsoft.VisualStudio.Modeling.Sdk.11.0.dll 内)

構文

'宣言
Public ReadOnly Property CurrentTransaction As Transaction
public Transaction CurrentTransaction { get; }

プロパティ値

型 : Microsoft.VisualStudio.Modeling.Transaction
Transaction オブジェクト。

解説

最も外側のトランザクションを取得するには、CurrentTransaction.TopLevelTransaction を使用します。

.NET Framework セキュリティ

  • 直前の呼び出し元に対する完全な信頼。このメンバーは、部分的に信頼されているコードから使用することはできません。詳細については、「部分信頼コードからのライブラリの使用」を参照してください。

参照

関連項目

TransactionManager クラス

Microsoft.VisualStudio.Modeling 名前空間