Share via


Receive-DtcDiagnosticTransaction

Receive-DtcDiagnosticTransaction

Propagates a transaction from a given diagnostic Resource Manager.

語法

Parameter Set: Default
Receive-DtcDiagnosticTransaction [[-ComputerName] <String> ] [[-Port] <Int32> ] [[-PropagationMethod] <DtcTransactionPropagation> {Pull | Push} ] [-InformationAction <System.Management.Automation.ActionPreference> {SilentlyContinue | Stop | Continue | Inquire | Ignore | Suspend} ] [-InformationVariable <System.String> ] [ <CommonParameters>]

詳細描述

The Receive-DtcDiagnosticTransaction cmdlet propagates a transaction from a specified diagnostic Resource Manager (RM). A transaction is created on the specified RM and propagated to the Windows PowerShell® client using either pull or push propagation. Use the PropagationMethod parameter to specify the propagation mechanism.

參數

-ComputerName<String>

Specifies the host name of the computer on which the RM runs. If you do not specify a host name, this cmdlet uses the name of the local computer.

別名

none

必要?

false

位置?

1

預設值

none

接受管線輸入?

True (ByValue)

接受萬用字元?

false

-InformationAction<System.Management.Automation.ActionPreference>

別名

infa

必要?

false

位置?

named

預設值

none

接受管線輸入?

false

接受萬用字元?

false

-InformationVariable<System.String>

別名

iv

必要?

false

位置?

named

預設值

none

接受管線輸入?

false

接受萬用字元?

false

-Port<Int32>

Specifies the listening port of the test RM. If you do not specify a port number, this cmdlet uses the name of the local computer.

別名

none

必要?

false

位置?

2

預設值

none

接受管線輸入?

false

接受萬用字元?

false

-PropagationMethod<DtcTransactionPropagation>

Specifies the propagation mechanism, pull or push, to use. The default is pull.

別名

none

必要?

false

位置?

3

預設值

none

接受管線輸入?

false

接受萬用字元?

false

<CommonParameters>

此 Cmdlet 支援一般參數:-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer 與 -OutVariable。如需詳細資訊,請參閱 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。

輸入

輸入類型是您可以使用管線處理方式傳遞給 Cmdlet 的物件類型。

輸出

輸出類型是 Cmdlet 所發出的物件類型。

範例

Example 1: Receive a diagnostic transaction

This command pulls a diagnostic transaction from Host1 port 17123.

PS C:\> Receive-DtcDiagnosticTransaction –ComputerName "Host1" –Port 17123 –PropagationMethod Pull

相關主題

Complete-DtcDiagnosticTransaction

New-DtcDiagnosticTransaction

Send-DtcDiagnosticTransaction

Undo-DtcDiagnosticTransaction