Editar

Compartir a través de


Complete-DtcDiagnosticTransaction

Invokes the Commit process if the specified transaction is the root transaction; otherwise, invokes the Complete method on a transaction object.

Syntax

Complete-DtcDiagnosticTransaction
        [-Transaction] <DtcDiagnosticTransaction>
        [<CommonParameters>]

Description

The Complete-DtcDiagnosticTransaction cmdlet invokes the Commit process if the specified transaction is the root transaction; otherwise, it invokes the Complete method on the transaction object specified by the DtcDiagnosticTransaction object.

Examples

Example 1: Complete a DTC diagnostic transaction

PS C:\> $Tx = New-DtcDiagnosticTransaction
PS C:\> Complete-DtcDiagnosticTransaction -Transaction $Tx

The first command creates a new DTC diagnostic transaction and assigns it to a variable.

The second command invokes the Commit process of the transaction.

Parameters

-Transaction

Specifies the DtcDiagnosticTransaction object on which to invoke the Complete method or to commit.

Type:DtcDiagnosticTransaction
Position:0
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

Inputs

Default

Specifies the DtcDiagnosticTransaction object on which to invoke the Complete method. You can use the pipeline operator to pass this parameter value to the cmdlet.