Complete-DtcDiagnosticTransaction

Complete-DtcDiagnosticTransaction

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

Syntax

Parameter Set: Default
Complete-DtcDiagnosticTransaction [-Transaction] <DtcDiagnosticTransaction> [-InformationAction <System.Management.Automation.ActionPreference> {SilentlyContinue | Stop | Continue | Inquire | Ignore | Suspend} ] [-InformationVariable <System.String> ] [ <CommonParameters>]

Detaillierte Beschreibung

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.

Parameter

-InformationAction<System.Management.Automation.ActionPreference>

Aliasse

infa

Erforderlich?

false

Position?

named

Standardwert

none

Pipelineeingaben akzeptieren?

false

Platzhalterzeichen akzeptieren?

false

-InformationVariable<System.String>

Aliasse

iv

Erforderlich?

false

Position?

named

Standardwert

none

Pipelineeingaben akzeptieren?

false

Platzhalterzeichen akzeptieren?

false

-Transaction<DtcDiagnosticTransaction>

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

Aliasse

none

Erforderlich?

true

Position?

1

Standardwert

none

Pipelineeingaben akzeptieren?

True (ByValue)

Platzhalterzeichen akzeptieren?

false

<CommonParameters>

Dieses Cmdlet unterstützt die allgemeinen Parameter: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, -OutVariable. Weitere Informationen finden Sie unter about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Eingaben

Der Eingabetyp ist der Typ der Objekte, die über die Pipeline an das Cmdlet übergeben werden können.

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

Ausgaben

Der Ausgabetyp ist der Typ der Objekte, die vom Cmdlet ausgegeben werden.

Beispiele

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

Verwandte Themen

New-DtcDiagnosticTransaction

Receive-DtcDiagnosticTransaction

Send-DtcDiagnosticTransaction

Undo-DtcDiagnosticTransaction