Edit

Share via


Complete-DtcDiagnosticTransaction

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

Syntax

Default (Default)

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.

Parameter properties

Type:DtcDiagnosticTransaction
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:0
Mandatory:True
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

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.