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.
構文
Parameter Set: Default
Complete-DtcDiagnosticTransaction [-Transaction] <DtcDiagnosticTransaction> [-InformationAction <System.Management.Automation.ActionPreference> {SilentlyContinue | Stop | Continue | Inquire | Ignore | Suspend} ] [-InformationVariable <System.String> ] [ <CommonParameters>]
詳細説明
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.
パラメーター
-InformationAction<System.Management.Automation.ActionPreference>
エイリアス |
infa |
必須? |
false |
位置は? |
named |
既定値 |
none |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-InformationVariable<System.String>
エイリアス |
iv |
必須? |
false |
位置は? |
named |
既定値 |
none |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-Transaction<DtcDiagnosticTransaction>
Specifies the DtcDiagnosticTransaction object on which to invoke the Complete method or to commit.
エイリアス |
none |
必須? |
true |
位置は? |
1 |
既定値 |
none |
パイプライン入力を許可する |
True (ByValue) |
ワイルドカード文字を許可する |
false |
<CommonParameters>
このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。
入力
入力型は、コマンドレットにパイプできるオブジェクトの型です。
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.
出力
出力型は、コマンドレットによって生成されるオブジェクトの型です。
例
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