Cmdlets

Choose a cmdlet from the list on the left or search for a specific cmdlet. Choose a cmdlet from the list or search for a specific cmdlet.
About Help  Providers
 

Complete-DtcDiagnosticTransaction

Complete-DtcDiagnosticTransaction

microsoft.dtc.powershell.dll

Synopsis

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] [<CommonParameters>]

Detailed 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.

Parameters

-Transaction <DtcDiagnosticTransaction>

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

Aliases

None

Required?

true

Position

1

Default value

Accept pipeline input?

True (ByValue)

Accept wildcard characters?

false

Input Type

Default

Return Type


Notes

None

Examples

Example 1: Complete a DTC diagnostic transaction

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.

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

Online Version
New-DtcDiagnosticTransaction
Receive-DtcDiagnosticTransaction
Send-DtcDiagnosticTransaction
Undo-DtcDiagnosticTransaction