< Back

Complete-DtcDiagnosticTransaction

Tue Jan 29, 2019 10:25 pm

NAME Complete-DtcDiagnosticTransaction



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





PARAMETERS

-Transaction <DtcDiagnosticTransaction>

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



Required? true

Position? 1

Default value none

Accept pipeline input? True (ByValue)

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).



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.





OUTPUTS











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.







RELATED LINKS

Online Version: http://go.microsoft.com/fwlink/p/?linkid=317152

New-DtcDiagnosticTransaction

Receive-DtcDiagnosticTransaction

Send-DtcDiagnosticTransaction

Undo-DtcDiagnosticTransaction