New-DtcDiagnosticTransaction
New-DtcDiagnosticTransaction
Creates a new transaction in a Transaction Manager on the local computer.
Syntax
Parameter Set: Default
New-DtcDiagnosticTransaction [[-Timeout] <Int32> ] [[-IsolationLevel] <IsolationLevel> {Serializable | RepeatableRead | ReadCommitted | ReadUncommitted | Snapshot | Chaos | Unspecified} ] [-InformationAction <System.Management.Automation.ActionPreference> {SilentlyContinue | Stop | Continue | Inquire | Ignore | Suspend} ] [-InformationVariable <System.String> ] [ <CommonParameters>]
Detaillierte Beschreibung
The New-DtcDiagnosticTransaction cmdlet creates a new transaction in a Transaction Manager (TM) on the local computer. By default it creates a transaction on the default transaction manager on the local computer. This cmdlet returns a transaction object that you can pass to other cmdlets.
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 |
-IsolationLevel<IsolationLevel>
Specifies the isolation level for a transaction.Die folgenden Werte für diesen Parameter sind zulässig:
-- Serializable
-- RepeatableRead
-- ReadCommitted
-- ReadUncommitted
-- Snapshot
-- Chaos
If you do not specify this parameter, the cmdlet uses the default IsolationLevel value specified in the System.Transactions.Transaction object.
Aliasse |
none |
Erforderlich? |
false |
Position? |
2 |
Standardwert |
none |
Pipelineeingaben akzeptieren? |
false |
Platzhalterzeichen akzeptieren? |
false |
-Timeout<Int32>
Specifies the timeout, in seconds, for the transaction. If you do not specify this parameter, the cmdlet uses the default timeout value specified in the System.Transactions.Transaction object.
Aliasse |
none |
Erforderlich? |
false |
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.
Ausgaben
Der Ausgabetyp ist der Typ der Objekte, die vom Cmdlet ausgegeben werden.
Beispiele
Example 1: Create a diagnostic transaction
This command creates a new serializable diagnostic transaction with a timeout of 60 seconds.
PS C:\> New-DtcDiagnosticTransaction –Timeout 60 –IsolationLevel Serializable
Verwandte Themen
Complete-DtcDiagnosticTransaction