言語

TransactionScope コンストラクター

定義

TransactionScope クラスの新しいインスタンスを初期化します。

public:
 TransactionScope();
public TransactionScope();
Public Sub New ()

次のコード サンプルは、 TransactionScope アクティビティの作成を示しています。

new TransactionScope
{
    Body = new Sequence
    {
        Activities =
        {
            new WriteLine { Text = "    Begin TransactionScope" },

            new PrintTransactionId(),

            new TransactionScopeTest(),

            new WriteLine { Text = "    End TransactionScope" },
        },
    },
},

適用対象