TransactionScope Constructor

Definitie

Initialiseert een nieuw exemplaar van de TransactionScope klasse.

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

Voorbeelden

In het volgende codevoorbeeld ziet u hoe u een TransactionScope activiteit maakt.

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

            new PrintTransactionId(),

            new TransactionScopeTest(),

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

Van toepassing op